Learn How UNIX Multitasks
BlueVoodoo writes "On UNIX systems, each system and end-user task is contained within a process. Learn how to control processes and use a number of commands to peer into your system."
← Back to Stories (view on slashdot.org)
Bear in mind that the various devices may do different things on different operating systems.
/dev/tty refers to the controlling terminal of the process that opened it. Therefore there is no reason to restrict its permissions... in fact to do so would prevent processes from writing to the terminal (if they wanted to do so directly to read a password, for instance, rather than relying on reading from stdin). /dev/tty[0-9]+ are the actual virtual consoles that one logs in on. They are owned by root:root until someone logs in on one whereupon they become owned by $user:tty. /dev/pts/[0-9]+ are pseudo terminals that are created by a terminal emulator such as xterm, or a remote login server such as ssh. They are also owned by $user:tty
On Linux,