user owns login tty

Ralf Holighaus ralfi at pemstgt.PEM-Stuttgart.de
Sat Dec 8 18:32:54 AEST 1990


dhuber at aut.autelca.ascom.ch (Daniel Huber) writes:

>I'm not a unix "specialist" at the moment (probably in future..hi guys)
>:-)

>Ok. Here is my question:

>Whenever somebody logs in on the system console he owns the device
>/dev/console.
>He can do everything with it. Even delete it. In this case the sysadm
>has a lot of work if the machine goes down before the file /dev/console
>is existent again. Reloading a tape with a miniUNIX etc...

>Is there a way to prevent deleting (I assume accidentally) the 
>/dev/console file?

>Daniel

Make a link to one ore more other /dev entries (I suppose that is already
the case; maybe /dev/console is linked to /dev/crt or somethink similar;
check either the inodes or major/minor numbers to see it it is already
present).

For example, execute 'ln /dev/console /dev/systty'. If it then happens that
someone deletes /dev/console, you still have /dev/systty and can relink it
to /dev/console.

Rgds
Ralf
-- 
Programmentwicklung fuer    Microcomputer |         Ralf U. Holighaus
PO-Box 810165        Vaihinger Strasse 49 |         >> PEM Support <<
(W)7000 Stuttgart 80              Germany | holighaus at pemstgt.PEM-Stuttgart.de
VOICE: x49-711-713045 FAX: x49-721-713047 |      ..!unido!pemstgt!ralfi 



More information about the Comp.unix.admin mailing list