Subject: Re: default /dev/tty* mode and ownership
To: None <tech-userlevel@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: tech-userlevel
Date: 07/30/2001 06:56:44
Emmanuel Dreyfus <manu@netbsd.org> typed:
: Currently:
: /dev/tty is mode 666 root/wheel

: /dev/tty[pqrs]* are mode 600 root/wheel, and are changed to mode 620
: `whoami`/tty when you log in.

This is the bit we're disputing.  Currently:  /dev/tty[pqrs]* are
mode 666 in the unused state.  Firstly, MAKEDEV makes them that way.
Secondly, /etc/rc.d/ttys resets them that way in case you had a
bad shutdown (obviously not relevant for a readonly /dev case).

Changing them from default mode 666 limits who can use ptys.
 
Regards,
-- 
Geoff Wing : <gcw@pobox.com>
Rxvt Stuff : <gcw@rxvt.org>
Zsh Stuff  : <gcw@zsh.org>