Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!uunet!mcsun!unido!pemstgt!ralfi From: ralfi@pemstgt.PEM-Stuttgart.de (Ralf Holighaus) Newsgroups: comp.unix.admin Subject: Re: user owns login tty Message-ID: <1990Dec08.073254.7269@pemstgt.PEM-Stuttgart.de> Date: 8 Dec 90 07:32:54 GMT References: <1174@aut.autelca.ascom.ch> Organization: PEM Tillmann Basien, Stuttgart, Germany Lines: 35 dhuber@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@pemstgt.PEM-Stuttgart.de VOICE: x49-711-713045 FAX: x49-721-713047 | ..!unido!pemstgt!ralfi