You are not logged in.
what permission should i give to a normal user to be able to shutdown?
--
Alexandru
Offline
AFAIK, there's no group for shutdown and poweroff commands. Your best bet is to set up sudo to allow the user to run the command without a password.
http://wiki.archlinux.org/index.php/Sudo
Once you've done that you can shut down with sudo <command>. You can then use an alias in your .bashrc to make shutdown point to the sudo command:
alias poweroff='sudo poweroff'
etc
Dusty
Offline
quick and dirty:
chmod +s /sbin/{reboot,poweroff}
![]()
Offline
You need to inform us in *how*, that is by what method, do you want user to be able to shut down?
"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."
SETH / Jane Roberts
Offline
I found the easiest method to be the one where you add the user you want to grant these privileges to the power-group.
# gpasswd -a user power
Zl.
Offline