I don't think I need to specify a shell.  I'm just trying to provide the
user with a quick 'n dirty test to verify that 'squeezecenter' has the
correct permissions to execute /sbin/shutdown via sudo without raising
any prompts.  I.E., if: 

sudo -u squeezecenter sudo /sbin/shutdown -k -h now

..executes without error and without prompting for a password, then the
user has correctly configured his/her system with the correct entries in
the /etc/sudoers file.

My question is this: is that a valid test?  Does that command actually
execute 'sudo /sbin/shutdown' from the 'squeezecenter' user account?

I'm guessing that it is.  If I comment out:

#%squeezecenter ALL=NOPASSWD:/sbin/shutdown

..from /etc/sudoers, then the above command fails the test (because it
raises a prompt) and this indicates the permissions aren't correct in
/etc/sudoers.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=51688

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to