Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
halt for normal user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
yemu
Guru
Guru


Joined: 05 Jun 2003
Posts: 342
Location: /poland/warsaw

PostPosted: Wed Oct 29, 2003 1:48 pm    Post subject: halt for normal user Reply with quote

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
View user's profile Send private message
beejay
Retired Dev
Retired Dev


Joined: 03 Oct 2002
Posts: 924
Location: Flensungen (das liegt neben Merlau)

PostPosted: Wed Oct 29, 2003 1:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Wed Oct 29, 2003 2:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
yemu
Guru
Guru


Joined: 05 Jun 2003
Posts: 342
Location: /poland/warsaw

PostPosted: Thu Oct 30, 2003 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
dma
Guru
Guru


Joined: 31 Jan 2003
Posts: 437
Location: Charlotte, NC, USA

PostPosted: Fri Oct 31, 2003 3:07 am    Post subject: Reply with quote

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
View user's profile Send private message
RedBeard0531
Guru
Guru


Joined: 21 Sep 2002
Posts: 415
Location: maryland

PostPosted: Fri Oct 31, 2003 4:01 am    Post subject: Reply with quote

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
View user's profile Send private message
yemu
Guru
Guru


Joined: 05 Jun 2003
Posts: 342
Location: /poland/warsaw

PostPosted: Sun Nov 02, 2003 8:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Roguelazer
Veteran
Veteran


Joined: 10 Feb 2003
Posts: 1233
Location: San Francisco, CA

PostPosted: Sun Nov 02, 2003 2:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum