Thread: halt for users
View Single Post

   
  #4 (permalink)  
Old 02-19-2008, 12:36 PM
Lew Pitcher
 
Posts: n/a
Default Re: halt for users

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tallis wrote:
> Hallo
>
> What is the best and safest way to enable users to halt and reboot

system.

"Normal" (unpriveledged) users can shutdown/halt or shutdown/reboot a
vanilla Slackware Linux box with no problem.

a) From any (character) console: <ctl><alt><del> will shutdown/reboot
(see the "ca" line in /etc/inittab)
(FWIW, <ctl><alt><Fx> will move you from a GUI to a console, where
you can then <ctl><alt><del> to shutdown)

b) From any login, a login as user "shutdown" will cause the system to
shutdown/halt (see /etc/passwd user "shutdown", which runs
/sbin/shutdown as it's shell)

c) From any login, a login as user "halt" will cause the system to halt
(see /etc/passwd user "halt", which runs /sbin/halt as it shell)

d) From KDM (KDE's XDM replacement), the user is permitted to select
either the "reboot" or "halt" shutdown option.

e) From GDM (Gnome's XDM replacement), the user is permitted to select
either the "reboot" or "halt" shutdown option.

- --

Lew Pitcher, IT Consultant, Enterprise Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFA2W/lagVFX4UWr64RAvr0AKDhWo1ADzmmh4e335gF/35BdSpjYwCfVxSK
4bZcMfhyanbc+cfovkgZM+8=
=xq0b
-----END PGP SIGNATURE-----
Reply With Quote