Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 2000 10:45:30 -0400
From:      Nathan Vidican <webmaster@wmptl.com>
To:        Nils Holland <nils@nightcastleproductions.org>
Cc:        questions@freebsd.org
Subject:   Re: Letting normal users halt the system
Message-ID:  <3933D409.A3171591@wmptl.com>
References:  <Pine.BSF.4.21.0005301548470.184-100000@tempest.ncptiddische.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Nils Holland wrote:
> 
> Well, I wonder about the following thing:
> 
> Normally, only root can halt and reboot a machine using commands like
> shutdown, halt and reboot. This is surely clever. But what can be done if
> I explictly want normal users be able to reboot/halt the system? One
> possibility that comes to my mind is to compile the kernel so that
> CTRL+ALT+DEL is interpreted as system-reboot ( I generally
> disable this, but if it's turned on, users could press these keys and
> after the system is halted and the reboot-process starts they could turn
> it of). Now I'm wondering if there's some place in which I can set the
> system up so that also the halt, reboot and shutdown commands work for
> normal users. While this surely shouldn't be done on a server in which
> many people log in ( that shouldn't be rebootable / haltable by
> everyone), it would be good if it worked on one of my computers which is
> normally being turned on and off by users as needed.
> 
> See ya,
> Nils
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

Place the user(s) you want to be able to halt/shutdown the system into
the 'operator' group; this will allow them tu run 'shutdown -h now' to
halt, and 'shutdown -r now' to reboot. (This will only work assuming the
default chown of root.operator to /sbin/shutdown).
	You don't need to use sudo, or anything like that.

-- 
Nathan Vidican
webmaster@wmptl.com
Windsor Match Plate & Tool Ltd.
http://www.wmptl.com/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3933D409.A3171591>