user owns login tty

Pedro Victor Pintus peter at secyt.edu.ar
Fri Dec 7 07:17:16 AEST 1990


In article <109706 at convex.convex.com> tchrist at convex.COM (Tom Christiansen) writes:
>In article <1174 at aut.autelca.ascom.ch> 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. 
>
>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 at secyt.ar                     |
|  UUCP    : ...!uunet!banyc!atina!secyt!peter  |
+-----------------------------------------------+



More information about the Comp.unix.admin mailing list