I understand from this post (http://osdir.com/ml/linux.debian.devel. … index.html) that one needs to give appropriate sudo permissions to a user you wish to give the ability to shutdown/restart the machine from the the quit dialog. But I don't know what permissions to give, and to what commands.
I've tried giving my non-root user account the ability to run sudo /usr/libexec/xmsf-shutdown/helper as well as /sbin/shutdown -h now, but still no joy. The shutdown and restart buttons are greyed out. How can I fix this?
You have to edit /etc/sudoers to give the according right. This is a very special file that you have to edit with a very special command:
... now add the following line somewhere in the appropriate section (doesn't really matter where, as long as it's there):
Effect is immediate, you don't even need to restart anything.
Niki (sysadmin, CentOS 5.0, Slackware 12.0)
PS: learn to survive in Vi before issuing visudo. Open a terminal and give 'vimtutor' a shot.
In my Debian the line to add is:
Instead of 'antoine' one should write his own username (using of course visudo as root).
Depending on your distro, you may need to add your user to the plugdev group as well (or even instead) if you are using udev.