View Single Post
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#11
Check if you really have an entry in sudoers.

e.g.:
Code:
Nokia-N900:/# cat /etc/sudoers | grep yamas
user ALL = NOPASSWD: /opt/yamas/yamas.sh, /usr/bin/yamas
Nokia-N900:/#
If it helps, for yamas I have the following code that works:

the sudoers file:

Code:
# cat /etc/sudoers.d/yamas.sudoers
user ALL = NOPASSWD: /opt/yamas/yamas.sh, /usr/bin/yamas
the desktop file:

Code:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=YAMAS
Comment=YAMAS - Yet Another Man In The Middle Automation Script  
Terminal=true
Type=application
Exec=osso-xterm -e "sudo yamas" &
Icon=yamas
X-Icon-path=/usr/share/icons
X-Window-Icon=yamas
X-Window-Icon-Dimmed=yamas
X-HildonDesk-ShowInToolbar=true
Type=Application
X-Osso-Type=application/x-executable
 

The Following User Says Thank You to Saturn For This Useful Post: