View Full Version : [SOLVED] Let non-power user turn off computer
eyelessfade
May 23rd, 2010, 06:52 PM
In 8.04 even a non-power user could turn off the computer even if other people was logged in, not anymore. How do I enable it again. I don't want to let all my user be power-users, but I will let them turn off the computer locally even if someone else is logged in.
eyelessfade
May 24th, 2010, 10:19 AM
anyone? Is there a special power group?
eyelessfade
June 25th, 2010, 03:37 PM
Not possible?
BigJules
June 25th, 2010, 05:59 PM
Sure is a way - use sudoers to allow non-root to issue the shutdown command. A very useful thing all round, sudoers, worth looking at in detail sometime.
Meanwhile for you, as root enter: visudo -s
At the end of the file being edited enter the line:
%user ALL=(ALL) NOPASSWD:/sbin/shutdown, /sbin/reboot
at 'user' insert your user-name. This will allow instant shutdown or reboot. I use two separate launcher icons on the top panel and threw away the usual one with the menu etc. The first (reboot) invokes the command as an application, not in a terminal:
sudo shutdown -r now
The second (power down) :
sudo shutdown -P now
Neat, fussless, and your choice of cool icons...
eyelessfade
June 25th, 2010, 11:27 PM
Thanks should have thought about visudo :)
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.