<div dir="ltr">The shutdown group with the sudoers file is the correct way to do it. </div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-26 17:19 GMT-04:00 Karl Auer <span dir="ltr"><<a href="mailto:kauer@biplane.com.au" target="_blank">kauer@biplane.com.au</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 2015-03-26 at 07:03 -0400, william drescher wrote:<br>
> How can a non-privileged user initiate a shutdown.<br>
<br>
Only do this if you trust your users to shutdown only when necessary.<br>
<br>
There are lots of ways!<br>
<br>
- have a cronjob that checks every minute for a specific file in /tmp<br>
and shuts down if the file exists<br>
<br>
- have a setuid script that shuts the system down<br>
<br>
- have a "shutdown" group, put your users into it, add a sudoers rule to<br>
let that group shut the system down<br>
<br>
- put the system on a UPS, run a UPS client that will shut the system<br>
down if the power fails, and tell your users to turn off the power to<br>
the UPS in an emergency.<br>
<br>
- and probably a few other ways as well.<br>
<br>
Regards, K.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
Karl Auer (<a href="mailto:kauer@biplane.com.au">kauer@biplane.com.au</a>)<br>
<a href="http://www.biplane.com.au/kauer" target="_blank">http://www.biplane.com.au/kauer</a><br>
<a href="http://twitter.com/kauer389" target="_blank">http://twitter.com/kauer389</a><br>
<br>
GPG fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4<br>
Old fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882<br>
<br>
<br>
<br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></span></blockquote></div><br></div>