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/29/2001 08:14:06
Emmanuel Dreyfus <manu@netbsd.org> typed:
: Currently, /dev/tty* are created mode 600 root/wheel.
All /dev/tty* (which are associated with /dev/pty*) are created
mode 666 on every platform. Where did you get your MAKEDEV from?
Is this mode 600 specific to some configuration which you haven't
mentioned?
: Is there any problem creating them mode 620 root/tty?
Yes, it presumes the client program is user root, setuid root,
group tty or setgid tty. With mode 666 anyone can get themselves
a pty/tty pair.
Regards,
--
Geoff Wing : <gcw@pobox.com>
Rxvt Stuff : <gcw@rxvt.org>
Zsh Stuff : <gcw@zsh.org>