You can replace all the lines you added with this single line:

slimserver    localhost=NOPASSWD: /sbin/shutdown -k now

Be sure that the command being executed is exactly:

"/sbin/shutdown -k now"

If it is not, use the "/sbin/./shutdown -k now" that you had.  Sudo
matches the exact command string.

And you must use the sudo command in your script, as mentioned by
WildCoder.


-- 
MrC
------------------------------------------------------------------------
MrC's Profile: http://forums.slimdevices.com/member.php?userid=468
View this thread: http://forums.slimdevices.com/showthread.php?t=18073

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

Reply via email to