Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How-to allow users to shutdown and reboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
COiN3D
Guru
Guru


Joined: 02 Aug 2004
Posts: 543
Location: Munich, Germany

PostPosted: Sun Mar 06, 2005 12:05 pm    Post subject: How-to allow users to shutdown and reboot Reply with quote

Hello,

don't you think it's silly to get root every time you want to reboot or shutdown? It's very easy to give users access to shutdown and reboot.

Just copy & paste this in your console:

Code:
chmod +s /sbin/halt


... and now you're able to reboot and shutdown as a user! ;)
_________________
e17 documentation | Be free and use Jabber as your IM! | Combine IRC and IM
Back to top
View user's profile Send private message
benjones
n00b
n00b


Joined: 15 Mar 2003
Posts: 14
Location: London

PostPosted: Sun Mar 06, 2005 12:15 pm    Post subject: Reply with quote

It might be better to do this with sudo rather than setuid, that way you know who is shutting down your system, and you can control it with groups. There's details on the wiki:
http://gentoo-wiki.com/HOWTO_Let_a_common_user_shutdown/reboot
Back to top
View user's profile Send private message
COiN3D
Guru
Guru


Joined: 02 Aug 2004
Posts: 543
Location: Munich, Germany

PostPosted: Sun Mar 06, 2005 12:15 pm    Post subject: Reply with quote

Oh sorry, didn't know that there's already a how-to.
_________________
e17 documentation | Be free and use Jabber as your IM! | Combine IRC and IM
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 17857

PostPosted: Mon Mar 07, 2005 10:35 pm    Post subject: Reply with quote

There are a few in DT&T too... one is: https://forums.gentoo.org/viewtopic-t-128251-highlight-shutdown+reboot.html
_________________

Believing I had supernatural powers I slammed into a brick wall.
I said hey, is this my problem? Is this my fault?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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