[Tfug] How to allow the user to reboot?
erich
erich1 at copper.net
Fri Nov 9 22:12:24 MST 2007
Yes,
I configured a client's box like this. He didn't want root
privileges, (I have them)
but, of course, he wanted to be able to shut the box down. The KDE install
I had for him took care of this little detail, (KDE also has a clever
way of getting
around root privileges for other things like dial-up for example).
The above scenario is for a single user platform with access to the
internet, not multiple users each with an account on a server.
Myself, I have a server, (Actually, It could be called an X-server).
However, I'm it's only user/administrator, and I trust me. (If you can't
trust yourself who can you trust? :-) )
Erich
Claude Rubinson wrote:
>On Fri, Nov 09, 2007 at 02:43:57PM -0700, jblais wrote:
>
>
>>Generally you need to be root to do a '/sbin/shutdown -h now', so, how does
>>the gnome desktop do a shutdown when you're a regular user?
>>
>>Can that command be accessed by a user's script?
>>
>>
>
>While I realize that you've already solved the issue, it's important
>to understand what's going on here. Since Unix supports multiple
>[remote] users, it would be foolhardy to let just anybody to shutdown
>the system. Hence, why the shutdown command is restricted to root
>user. What sudo lets you do is distribute root privileges to select
>individuals.
>
>Sudo privileges should, therefore, be distributed judiciously. Don't
>simply grant yourself privileges to everything (as is becoming more
>and more common with desktop-oriented distros) as that's only slightly
>safer than logging in as root.
>
>Claude
>
>_______________________________________________
>Tucson Free Unix Group - tfug at tfug.org
>Subscription Options:
>http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>
>
>
More information about the tfug
mailing list