From: Jacob Fugal <[EMAIL PROTECTED]> Reply-To: BYU Unix Users Group <[EMAIL PROTECTED]> To: BYU Unix Users Group <[EMAIL PROTECTED]> Subject: Re: [uug] More Gentoo questions Date: Fri, 03 Oct 2003 13:18:39 -0600
Ryan Bowman wrote:This one should be easy. I think that I should know the answer already, but i don't, so I ask the source of all wisdom --the List. Anyway, the question...
How do I make regulare users able to use the halt and reboot commands?
To answer your question directly:
chmod a+x /sbin/halt /sbin/reboot
and add /sbin to the default path (or symlink them into /usr/bin)
However, my advice would be to *not* do the above, unless you really want to. The approach I would use is this:
add a group called 'wheel' (may already exist) chgrp wheel /sbin/halt /sbin/reboot chmod g+x /sbin/halt /sbin/reboot
Then add any users who should be allowed use the commands into this group. You'll have to add /sbin to the path for these users (or symlinks in /usr/bin) just like above.
Jacob
____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
Okay, that was what I initially considered, but wasn't sure if that was the 'proper' way to do things. But having done that, I stiill can't run halt or reboot or shutdown. It says 'must be superuser to run this command' or something like that that indicates I must be a superuser.
So I took Mike Halcrow's advice and modified the sudoers file so I can sudo halt, but that doesn't solve the problem of exactly, because I want a normal user to type 'halt' and have it work.
---- Ryan Bowman
'You must join me, Obi-wan, and together we will destroy the Sith!' - Count Dooku
'And you, younk Skywalker, we will watch your career with great interest.' - Supreme Chancellor Palpitine ----
_________________________________________________________________
Instant message in style with MSN Messenger 6.0. Download it now FREE! http://msnmessenger-download.com
____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
