On Sat, Aug 02, 2003 at 03:32:01AM +0200, Marius Mauch wrote:
> On 08/01/03  Lares Weaselle wrote:
Hi

> 
> > I would like to be able to reboot/halt my laptop while a user.  I
> > don't like to have to superuser to do so.  Any thoughts?
> 
> If you use ACPI emerge acpid-1.0.2-r2 (you need -r2 for a working
> default config) you can poweroff your laptop with the power button. Have
> a look at /etc/acpi/default.sh, you can define any action there.
> 
> If you want to use the commands halt/poweroff/reboot as user you can
> either use sudo or set them SUID (security risk) with 
>       chmod u+s <filename>

I've seen linux systems with a shutdown group before, add any users you want
to be able to shutdown/reboot your machine and chown the commands to
root:shutdown and make them executable by the shutdown group. You'll also
need to add /sbin to those users' $PATHs.


Tom

> 
> Marius
> 
> --
> [EMAIL PROTECTED] mailing list
> 

--
[EMAIL PROTECTED] mailing list

Reply via email to