View Single Post
Posts: 20 | Thanked: 11 times | Joined on Apr 2010
#6
Originally Posted by MohammadAG View Post
update-sudoers

Code:
#!/bin/sh

update-sudoers
exit 0
Sample .sudoers file
Code:
Nokia-N900:~# cat /etc/sudoers.d/psfreedom.sudoers 
user ALL = NOPASSWD: /usr/sbin/psfreedom-disable-n900.sh
user ALL = NOPASSWD: /usr/sbin/psfreedom-enable-n900.sh
user ALL = NOPASSWD: /opt/psfreedom/resources/helpimages/modelimages.sh
user ALL = NOPASSWD: /opt/psfreedom/resources/scripts/helperscript.sh
Thanks for the response again.
I studied the bluemaemo project source because it uses this sort of mechanism. It uses the debian rules file to copy the .sudoers file into the directory.