[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why no package seems to take care of the new /dev/console device?



>>>>> "Filip" == Filip Van Raemdonck <filipvr@xs4all.be> writes:

    Filip> Just a question... what are the correct permissions for
    Filip> /dev/console? I found it to be 622 on my system... these
    Filip> look rather unusual to me, at least.

 I'm not sure what's correct...  Here's what it looks like here.

crw--w--w-    1 root     tty        5,   1 Jan 26 15:51 /dev/console
crw-rw-rw-    1 root     tty        5,   0 Jan 26 14:13 /dev/tty
crw--w--w-    1 root     root       4,   0 Jan 26 15:51 /dev/tty0
crw-------    1 root     root       4,   1 Jan 31 03:05 /dev/tty1
crw-rw-rw-    1 root     tty        4,  10 Jan 26 15:51 /dev/tty10
crw-rw-rw-    1 root     tty        4,  11 Jan 26 15:51 /dev/tty11
crw-rw-rw-    1 root     root       4,  12 Jan 31 12:53 /dev/tty12
crw-rw-rw-    1 root     tty        4,   2 Jan 26 15:51 /dev/tty2
crw-rw-rw-    1 root     tty        4,   3 Jan 26 15:51 /dev/tty3
crw-rw-rw-    1 root     tty        4,   4 Jan 26 15:51 /dev/tty4
crw-rw-rw-    1 root     tty        4,   5 Jan 26 15:51 /dev/tty5
crw-rw-rw-    1 root     tty        4,   6 Jan 26 15:51 /dev/tty6
crw-rw-rw-    1 root     root       4,   7 Jan 26 15:51 /dev/tty7
crw-rw-rw-    1 root     tty        4,   8 Jan 26 15:51 /dev/tty8
crw-rw-rw-    1 root     tty        4,   9 Jan 26 15:51 /dev/tty9

 I think these are wrong.  "/dev/tty{1,2}" have `getty' running on
 them right now. "/dev/tty12" has output from `syslog-ng'.

 According to W. Richard Stevens, in "Advanced Programming in the UNIX
 Environment", they should be something like `root.tty' `u=rw,g=w,o='.

 I don't see why these ought to be world writeable like this.  The
 `getty' runs as root, writeable for group tty is for `write',
 `sendmsg', and `wall'.

 I think that the section at the top of `MAKEDEV' where the
 permissions are configured ought to be pulled out into a conffile
 down in "/etc".


Reply to: