On Thu, 29 Jul 1999, Theo Brinkman wrote:
> Axalon wrote:
> >
> > 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
> >
> > In theory it is not that hard, you need a program to check the currect
> > virtual console then check whos logged into it. All you need todo now is
> > find it or write it.
>
> How about creating a quick script '/etc/threefingersalute', like the one
> below:
> - -
> if [ $USERNAME = "ROOT" ]; then
$USER $USERNAME or $LOGNAME, bash manpages will give you info on what each
is, the "ROOT" should be "root" it's case sensitive. This might work, but
without double checking i'm pretty sure it'll be a problem that init runs
as root and this does not actualy run on the current console when you
call it with.
> halt
> else
> logout
> fi
> - -
> and putting a call to it in /etc/inittab like this:
> - -
> ca::ctrlaltdel:/etc/threefingersalute
> - -
> Please bear in mind, this is my first attempt at a script, so any
> debugging comments will come in handy.
>