Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!banyc!atina!secyt!peter From: peter@secyt.edu.ar (Pedro Victor Pintus) Newsgroups: comp.unix.admin Subject: Re: user owns login tty Message-ID: <479@secyt.edu.ar> Date: 6 Dec 90 20:17:16 GMT References: <1174@aut.autelca.ascom.ch> <109706@convex.convex.com> Reply-To: peter@secyt.edu.ar (Pedro Victor Pintus) Organization: Secretaria de Ciencia y Tecnica, Argentina Lines: 37 In article <109706@convex.convex.com> tchrist@convex.COM (Tom Christiansen) writes: >In article <1174@aut.autelca.ascom.ch> 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. > >Only circumstantially. Ownership of a file has nothing to do with >deleting it in UNIX. Check out the permissions on /dev. Make them mode >0755, owner root.bin, or whatever group makes sense on your system. Of >course, if they're the superuser, it can still happen. > >--tom BTW, if the user is logged in /dev/console, the system is (high probably) in single user (maintenance) mode, which implies: a) those user _is_ the system admin or b) the sysadm is so foolish to leave the system open to people in single user mode (aka System maintenance mode). In any case is _their_ fault if he later has his head screwed on with the big trouble of re-install the console device in order to be capable of boot the system. Cheers, Peter. -- +-----------------------------------------------+ | Pedro Victor Pintus | | Secretaria de Ciencia y Tecnologia | | Buenos Aires, Rep. Argentina | | Internet: peter@secyt.ar | | UUCP : ...!uunet!banyc!atina!secyt!peter | +-----------------------------------------------+