Chuck Stuettgen <cstuettgen@myrealbox.com> writes:
... Having recently converted from Mandrake to SuSe 9.0 Pro. I found it annoying that my regular user account could not shutdown or restart the computer. ...
FYI: In KDE, which is the default in SUSE 9.0, each user is offered to (1) login as a different user, (2) turn off the computer, (3) restart the computer when he or she selects to log out. As I understand it, the functionality is missing in Gnome provided by SUSE.
Then I set SUID to the link.
chmod u+s /sbin/shutdown
If you want to do it this way (without sudo) then it is safer to copy /sbin/shutdown to a subdirectory in your home which only you can access and set the suid bit there. This prevents other users from exploiting a potential security hole in shutdown. -- A.M.