In your package. create a file called: /etc/sudoers.d/bluemaemo.sudoers Put this in the file: user ALL = NOPASSWD: <program you want to be able to execute as root - FULL PATH MUST BE SPECIFIED> In the postinst, put: update-sudoers || true Then where you need to run the program as root, just specify sudo <program> to start the program.