You are not logged in.
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
maybe permissions got changed....see wiki here to re-enable: http://wiki.archlinux.org/index.php/All … o_shutdown
Offline
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
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
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
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
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
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
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
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