/etc/inittab allows commands to be differed by runlevel (i.e. do this in
runlevel 3, do that in runlevel 5) but not by user.  What you can do
instead, however, is add the -a option to the shutdown command in
/etc/inittab:

In inittab, change the line that says
        ca::ctrlaltdel:/sbin/shutdown -t3 -r now
to say 
        ca::ctrlaltdel:/sbin/shutdown -a -t3 -r now

> are these specific to certain versions of linux, or are these facilities
> present on all versions?

Well, I suppose if you have a really, really, really old version of init, 
it might not have had the Ctrl-Alt-Del catch implemented yet, but If
you're using Mandrake, Debian, RH, SLackware, whatever, it will work just 
the same. As to shutdown, well, every distribution had damn well better
include it- you can't safely shut down the machine without it!

     -Matt

P.S. Is "differed" really a word?

On Tue, 27 Jul 1999, Theo Brinkman wrote:

> Can you control what Ctrl-Alt-Del does by user?  (i.e.: Let root reboot
> the system that way, but have it just log everyone else out?)
> 
>       - Theo
> 
> Matt Stegman wrote:
> > 
> > /etc/shutdown.allow is a file that contains the names of users aloowed to
> > shutdown the system.  It may not be present on your system yet; you'll
> > have to create it.
> > 
> > Also check /etc/inittab to see if Ctrl-Alt-Del is being caught.  If so,
> > anybody (not just those in shutdown.allow) may shutdown the system via the
> > "three finger salute."  What you might do is change the Ctrl-Alt-Del
> > command to "logout" or something else that's harmless.
> > 
> >      -Matt
> > 
> > On Tue, 27 Jul 1999, Bobby Raagas wrote:
> > 
> > > I want to give a special acces to a user in my linux box to shutdown it,
> > > how will i do it? I'm using MDK 6.0 (Venus)
> > >
> > > Thanks
> > >
> 

Reply via email to