I'm working on an app that requires root privileges, I have created an bluehead.sudoers file containing:
user ALL = NOPASSWD: /opt/bluehead/bin/bluehead
i have also included a postinst file containing:
#!/bin/sh
update-sudoers
exit 0
the app executable is installed to /opt/bluehead/bin/
app name = bluehead
When i install this app on my device using the Qt SDK it still asks for password when i try sudo bluehead in the installation directory
ls - l on the executable returns -rwxr-xr-x
I'm developing on Qt SDK 1.1.4
What I'm I missing out? Any help appreciated (I'm about to start pulling my hair out)
Last edited by anistein; 2011-11-13 at 10:41.
Reason: solved
For record: i figured what caused my *.sudoers file not to work. The problem was something to do with linefeed/carriage return because it was written using QT creator editor on windows. I wrote a new one using nano on my N900 and it worked.
user ALL = NOPASSWD: /opt/bluehead/bin/bluehead
i have also included a postinst file containing:
#!/bin/sh
update-sudoers
exit 0
the app executable is installed to /opt/bluehead/bin/
app name = bluehead
When i install this app on my device using the Qt SDK it still asks for password when i try sudo bluehead in the installation directory
ls - l on the executable returns -rwxr-xr-x
I'm developing on Qt SDK 1.1.4
What I'm I missing out? Any help appreciated (I'm about to start pulling my hair out)
Last edited by anistein; 2011-11-13 at 10:41. Reason: solved