shutdown by regular user
Niles Rogoff
nilesrogoff at gmail.com
Thu Mar 26 21:37:15 UTC 2015
The shutdown group with the sudoers file is the correct way to do it.
2015-03-26 17:19 GMT-04:00 Karl Auer <kauer at biplane.com.au>:
> On Thu, 2015-03-26 at 07:03 -0400, william drescher wrote:
> > How can a non-privileged user initiate a shutdown.
>
> Only do this if you trust your users to shutdown only when necessary.
>
> There are lots of ways!
>
> - have a cronjob that checks every minute for a specific file in /tmp
> and shuts down if the file exists
>
> - have a setuid script that shuts the system down
>
> - have a "shutdown" group, put your users into it, add a sudoers rule to
> let that group shut the system down
>
> - put the system on a UPS, run a UPS client that will shut the system
> down if the power fails, and tell your users to turn off the power to
> the UPS in an emergency.
>
> - and probably a few other ways as well.
>
> Regards, K.
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Karl Auer (kauer at biplane.com.au)
> http://www.biplane.com.au/kauer
> http://twitter.com/kauer389
>
> GPG fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4
> Old fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150326/19f0082e/attachment.html>
More information about the ubuntu-users
mailing list