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

Reply via email to