shutdown by regular user
Karl Auer
kauer at biplane.com.au
Thu Mar 26 21:19:53 UTC 2015
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
More information about the ubuntu-users
mailing list