Ok, then, lets take another approach that will be easier.

If you are ok with any local user being able to shutdown your system
(and unless you've changed things, they can anyway), just change the
shutdown command to be setuid.  From a root shell, issue the command:

chmod +s /sbin/shutdown

Now, anyone can run shutdown.


-- 
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