View previous topic :: View next topic |
Author |
Message |
yemu Guru
Joined: 05 Jun 2003 Posts: 342 Location: /poland/warsaw
|
Posted: Wed Oct 29, 2003 1:48 pm Post subject: halt for normal user |
|
|
anyone knows hot to make "halt" command available to nornal users? now when try to run halt not as root ist says that only root can run it.
thanks for any suggestions
best regards
yemu _________________ Centrum Jêzyka Francuskiego VOILA - http://www.voila.edu.pl |
|
Back to top |
|
|
beejay Retired Dev
Joined: 03 Oct 2002 Posts: 924 Location: Flensungen (das liegt neben Merlau)
|
Posted: Wed Oct 29, 2003 1:54 pm Post subject: |
|
|
Change the permissions or make the executable suid root -- but rember: there is a reason that only root is able to run that command ! _________________ Dort wo schwarzer Rauch aufsteigt, sich alsbald ein Fehler zeigt.
www.paludis-sucks.org | www.gentoo.de | www.gentoo-ev.org | www.gentoo.org |
|
Back to top |
|
|
ian! Bodhisattva
Joined: 25 Feb 2003 Posts: 3829 Location: Essen, Germany
|
Posted: Wed Oct 29, 2003 2:09 pm Post subject: |
|
|
Moved from "Hardware and Laptops" to "Other Things Gentoo". _________________ "To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins |
|
Back to top |
|
|
yemu Guru
Joined: 05 Jun 2003 Posts: 342 Location: /poland/warsaw
|
Posted: Thu Oct 30, 2003 3:01 pm Post subject: |
|
|
so is ithere any other way to shutdown a computer by normal user? i't a littlle annoying to su everytime i shutdown. I only use my computer at home, so is it really unsafe to let normal user shutdown? _________________ Centrum Jêzyka Francuskiego VOILA - http://www.voila.edu.pl |
|
Back to top |
|
|
dma Guru
Joined: 31 Jan 2003 Posts: 437 Location: Charlotte, NC, USA
|
Posted: Fri Oct 31, 2003 3:07 am Post subject: |
|
|
Go into /etc/inittab and make ctrl-alt-delete halt instead of reboot.
If I really want a reboot, I just hit the reset button after it halts or issue the reboot command.
I did this like 6 years ago.
Code: | # What to do at the "Three Finger Salute".
ca:12345:ctrlaltdel:/sbin/shutdown -h now |
|
|
Back to top |
|
|
RedBeard0531 Guru
Joined: 21 Sep 2002 Posts: 415 Location: maryland
|
Posted: Fri Oct 31, 2003 4:01 am Post subject: |
|
|
If you like to run as a user, learn to love sudo. I hated it and have been runnen as root for years now. _________________ OH MY GOD! Kenny just killed Kenny!
That Basterd! |
|
Back to top |
|
|
yemu Guru
Joined: 05 Jun 2003 Posts: 342 Location: /poland/warsaw
|
Posted: Sun Nov 02, 2003 8:43 am Post subject: |
|
|
thanks! i've just set ctrl-alt-del to shutdown -h now
yemu _________________ Centrum Jêzyka Francuskiego VOILA - http://www.voila.edu.pl |
|
Back to top |
|
|
Roguelazer Veteran
Joined: 10 Feb 2003 Posts: 1233 Location: San Francisco, CA
|
Posted: Sun Nov 02, 2003 2:57 pm Post subject: |
|
|
Code: |
# chmod +s /sbin/shutdown
# chmod +s /sbin/halt
|
Please note that this is insecure and should NEVER be used on a server. _________________ Registered Linux User #263260 |
|
Back to top |
|
|
|