If it's your home system and especial security is unimportant you can try
next:
chmod +s /sbin/halt
and use /sbin/halt to achieve the same effect.

You can use ACPI power button event (see /etc/acpi/events/default and
uncomment appropriate line).
Also there was method with dbus (searching the web will give suggestions).


2014-03-10 22:15 GMT+02:00 Jarry <[email protected]>:

> Hi,
> 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?
>
> Jarry
> --
> _______________________________________________________________
> This mailbox accepts e-mails only from selected mailing-lists!
> Everything else is considered to be spam and therefore deleted.
>
>


-- 
Regards,
Nikita

Reply via email to