[102210] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: reboot from user's accountRe: Oracle on Linux

daemon@ATHENA.MIT.EDU (Steve Hazelett)
Tue Dec 1 22:01:17 1998

From: Steve Hazelett <hazelett@aa.net>
Date: Tue, 1 Dec 1998 18:48:26 -0800 (PST)
To: redhat-list@redhat.com
In-Reply-To: <Pine.A32.3.91.981201173853.13492C-100000@compute.it.siu.edu>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Wang,
   Use vi to create a file (as root) called /etc/shutdown.allow.  Put
the users name (account names) in this file that you wish to allow
rebooting.  Change the line in /etc/inittab file from (as root):

ca::ctrlaltdel:/sbin/shutdown -h now

to:

ca::ctrlaltdel:/sbin/shutdown -r now

This will allow the users in /etc/shutdown.allow to do a Ctrl-Alt-Del
and reboot the system.

The file /etc/shutdown.allow does not norally exists, you create it with
vi and put those users account names in there that you will allow to
reboot the system.


Another way is to do a su - enter the root password when asked then
/sbin/shutdown -r now


   The line that says 
wang zaigui <zgwang@compute.it.siu.edu> wrote:
>  how do I reboot linux as a user, not as root?
> I try "su root" and from there issue "reboot", the 
> computer says 'command not available'
> 
> Guess this is a naive question. But would appreciate any 
> teaching.


hazelett@aa.net


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post