You are not logged in.

#1 2008-01-18 06:18:11

khalderon
Member
Registered: 2008-01-03
Posts: 70

Reveal to me the mystery of reboot/shutdown

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

#2 2008-01-18 06:22:18

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,405
Website

Re: Reveal to me the mystery of reboot/shutdown

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)

Offline

#3 2008-01-18 06:22:52

khalderon
Member
Registered: 2008-01-03
Posts: 70

Re: Reveal to me the mystery of reboot/shutdown

Ok. What about reboot?


The future belongs to those who believe in the beauty of their dreams.

Offline

#4 2008-01-18 06:45:13

Bob-Hur
Member
Registered: 2007-12-09
Posts: 43

Re: Reveal to me the mystery of reboot/shutdown

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

#5 2008-01-18 06:48:34

khalderon
Member
Registered: 2008-01-03
Posts: 70

Re: Reveal to me the mystery of reboot/shutdown

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

#6 2008-01-18 07:45:07

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: Reveal to me the mystery of reboot/shutdown

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

#7 2008-01-18 10:01:21

robertp
Member
From: Warszawa, Poland
Registered: 2007-09-11
Posts: 123

Re: Reveal to me the mystery of reboot/shutdown

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

#8 2008-01-18 10:10:45

khalderon
Member
Registered: 2008-01-03
Posts: 70

Re: Reveal to me the mystery of reboot/shutdown

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

#9 2008-01-18 10:24:36

Zuranox
Member
Registered: 2008-01-18
Posts: 8

Re: Reveal to me the mystery of reboot/shutdown

Try to add your user to the power group.

Offline

#10 2008-01-18 10:40:36

khalderon
Member
Registered: 2008-01-03
Posts: 70

Re: Reveal to me the mystery of reboot/shutdown

I tried - no effect.


The future belongs to those who believe in the beauty of their dreams.

Offline

#11 2008-01-18 10:43:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,405
Website

Re: Reveal to me the mystery of reboot/shutdown

Setup sudo for shutdown with nopasswd for your account.  Then alias shutdown as "sudo shutdown".  Should solve your problem.

Offline

#12 2008-01-18 10:44:07

khalderon
Member
Registered: 2008-01-03
Posts: 70

Re: Reveal to me the mystery of reboot/shutdown

How do I do that?


The future belongs to those who believe in the beauty of their dreams.

Offline

#13 2008-01-18 10:49:46

PJ
Member
From: Sweden
Registered: 2005-10-11
Posts: 602

Re: Reveal to me the mystery of reboot/shutdown

I wonder if the search function might be broken... tongue

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

Board footer

Powered by FluxBB