[Tfug] How to allow the user to reboot?
Andrew Ayre
andy at britishideas.com
Fri Nov 9 14:50:15 MST 2007
One way:
Add it to /etc/sudoers with the NOPASSWD option. Then any user can type:
sudo /sbin/shutdown -h now
The users might have to belong to the sudo group - not sure.
Andy
jblais wrote:
> Hello -
>
> Yet another dumb question -- I guess it's from running point-n-click stuff
> too much.
>
>
> Fedora 5, gnome desktop.
>
> 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?
>
> Thanks
>
> Joe
>
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>
>
>
--
Andy
PGP Key ID: 0x67090A54
More information about the tfug
mailing list