You are not logged in.

#1 2007-09-22 02:50:59

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 517
Website

halt and reboot not working as normal user after upgrade.

I was using "halt" and "reboot" commands as a normal user and it was fine until recent upgrade after changing to core from current. These commands need root privilage now.... I dont understand why. Please help.

Offline

#2 2007-09-22 03:02:12

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: halt and reboot not working as normal user after upgrade.

maybe permissions got changed....see wiki here to re-enable: http://wiki.archlinux.org/index.php/All … o_shutdown

Offline

#3 2007-09-22 08:17:05

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

Re: halt and reboot not working as normal user after upgrade.

Never use method with chmod, it's a HUGE security BUG. And I am really not paranoid, I have run into problems with this method.

Either use GDM and friends or sudo. I prefer the first method.

Offline

#4 2007-09-22 10:37:54

ProzacR
Member
Registered: 2007-04-29
Posts: 272

Re: halt and reboot not working as normal user after upgrade.

Also it is metod with /etc/inittab
Edit similar line there into:
ca::ctrlaltdel:/sbin/shutdown -t3 -h now
(I think you have only to replace r with h).
Then ctrl+alt+del calls shutdown.

+sry but GDM sucks. Usless waste of system power thats all from it.
Ppl disable it even on Ubuntu.
And sudo is not fun also.

Last edited by ProzacR (2007-09-22 10:40:37)

Offline

#5 2007-09-22 19:48:03

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 517
Website

Re: halt and reboot not working as normal user after upgrade.

robertp wrote:

Never use method with chmod, it's a HUGE security BUG. And I am really not paranoid, I have run into problems with this method.

Either use GDM and friends or sudo. I prefer the first method.

Could you please explain the security issue with chmod, then the wiki can be edited according to that.

Offline

#6 2007-09-22 20:17:04

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 517
Website

Re: halt and reboot not working as normal user after upgrade.

GDM really sucks.

inittab thing did not work for me, i dont know why..

Since i'm in sudo group, i can anyway shutdown using sudo command, but again it requires lot of typing and not a one key solution as early I added a key binding for "exec halt.

I guess chmod is the only best thing.

Offline

#7 2007-09-23 06:15:30

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

Re: halt and reboot not working as normal user after upgrade.

Chmod solution is tolerable as long as there are no remote logins to your system or the only people who can login remotly are especially trusted. When you chmod +s shutdown/ halt/reboot any user (also users logged remotely) can shut down your system (either maliciously or by mistyping).

Also SUID-ed programs are one of the easiest way to gain root privileges.

By saying 'GDM sucks' you mean that  you prefer KDM (or similar) or that you don't like any Display Manager and issue startx command after login?

Offline

#8 2007-09-23 07:27:41

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 517
Website

Re: halt and reboot not working as normal user after upgrade.

Yes, i dont prefer any DM, just login on console and dont need to fire startx to start X. Just added this line in ~/.bash_profile file

ps ax|grep -q "[ ]`which X`" || exec xinit >/dev/null 2>&1

Offline

#9 2007-09-23 13:52:34

ibrahim
Member
Registered: 2006-02-18
Posts: 53

Re: halt and reboot not working as normal user after upgrade.

ravisghosh wrote:

Since i'm in sudo group, i can anyway shutdown using sudo command, but again it requires lot of typing and not a one key solution as early I added a key binding for "exec halt.

I guess chmod is the only best thing.

You could edit your sudoers file to allow you to run shutdown (or whatever command you use) with no password and then with a new keybinding it would be just as quick as before

Offline

#10 2007-09-28 16:21:27

ProzacR
Member
Registered: 2007-04-29
Posts: 272

Re: halt and reboot not working as normal user after upgrade.

robertp wrote:

By saying 'GDM sucks' you mean that  you prefer KDM (or similar) or that you don't like any Display Manager and issue startx command after login?

Me personaly startx
And yes /etc/inittab method sometimes fails to work in gui. So ctl+alt+bckspace (stop gui) and only then clt+alt+del works just fine.

Last edited by ProzacR (2007-09-28 16:23:24)

Offline

Board footer

Powered by FluxBB