maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Solved] Need help with sudoers (https://talk.maemo.org/showthread.php?t=79918)

anistein 2011-11-12 08:50

[Solved] Need help with sudoers
 
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)

anistein 2011-11-12 21:09

Re: Need help with sudoers
 
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.


All times are GMT. The time now is 16:39.

vBulletin® Version 3.8.8