You are not logged in.
Tell me how to shutdown the computer. Reboot does only reboot (as a root), normal users what can do?
The future belongs to those who believe in the beauty of their dreams.
Offline
As root you can "shutdown -h now".
Alternatively, you can give you user permission to call shutdown using sudo. I know you need to do that to use the shtdown dialog in XFCE - no idea about other desktops.
Last edited by Allan (2008-01-18 06:22:46)
Online
Ok. What about reboot?
The future belongs to those who believe in the beauty of their dreams.
Offline
As root (or use sudo)
shutdown -r now
You may also be able to reboot as a regular user by using the "Windows Salute" of Ctrl-Alt-Del
Offline
Ok, I wonder why a regular user cannot shut down. This is strange.
The future belongs to those who believe in the beauty of their dreams.
Offline
I personally use
halt -p
for shutdown
My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...
Offline
Ok, I wonder why a regular user cannot shut down. This is strange.
To prevent remotely logged in users (via ssh, telnet) from shutting down system. This usually makes sense in systems with many user accounts (mostly servers).
Offline
So, every time I am logged in as a normal user, I will have to log out and log in as a root just to shut down?
The future belongs to those who believe in the beauty of their dreams.
Offline
Try to add your user to the power group.
Offline
I tried - no effect.
The future belongs to those who believe in the beauty of their dreams.
Offline
Setup sudo for shutdown with nopasswd for your account. Then alias shutdown as "sudo shutdown". Should solve your problem.
Online
How do I do that?
The future belongs to those who believe in the beauty of their dreams.
Offline
I wonder if the search function might be broken...
Anyway, here is another thread that is about allowing users to shutdown/reboot, which by the way is solved.
http://bbs.archlinux.org/viewtopic.php?id=42260
Some different methods described in the wiki. Just a note, method nr 1 will have to be updated each and every time you are installing a new package which contains halt, so I wouldn't use it.
http://wiki.archlinux.org/index.php/All … o_shutdown
Last edited by PJ (2008-01-18 10:50:20)
Offline