You are not logged in.
Pages: 1
I want to use poweroff command from my user. How can I do that?
Offline
Read about sudo.
Offline
Mmm I know about sudo, but I do not like sudo.
Can I do this in other way? Without sudo and without root?
Offline
There are more possibilities:
1) change file permissions for the halt command (as root)
chmod +s /sbin/halt
2) using sudo -> add to /etc/sudoers with visudo (as root)
user hostname = NOPASSWD: /sbin/shutdown -h now
After that you can as user shutdown with
sudo shutdown -h now
Offline
What about pressing Ctrl+Alt+Del? Just modify your inittab to execute `shutdown -h now' (or something like that) on pressing it:
ca::ctrlaltdel:/sbin/shutdown -t3 -h now
Offline
Pages: 1