On Mon, 10 Mar 2014 21:15:13 +0100, Jarry wrote: > how can I allow other (not-root) users to shut down system? > > I tried to add them to /etc/shutdown.allow but it works only > for "Ctrl-Alt-Del". When they try shutdown per command line > (/sbin/shutdown -a -h now) they still get: > > shutdown: you must be root to do that! > Usage: ... > > Is there any way to achieve this without installing sudo?
Yes, but why do things the hard way when this is exactly the type of situation tat sudo is designed to handle. Allow selected, or all, users to run sudo shutdown without a password and set up an alias from shutdown to sudo /sbin/shutdown. -- Neil Bothwick A real programmer never documents his code. It was hard to make, it should be hard to read
signature.asc
Description: PGP signature

