Subject: Re: default /dev/tty* mode and ownership
To: None <>
From: Andrew Brown <>
List: tech-userlevel
Date: 07/29/2001 19:41:05
>	- proposed permission change is from 666 to 620, so the above discussion
>	  does not apply.  now the problem is, is it okay for every tty-
>	  modifying binary to be setuid/setgid'ed?  you saw various objections.

it seems to me that anything that already needs to write to a tty (eg
write(1), wall(1), dump(8)) uner normal operation is already setgid

anything that needs to *modify* the tty needs to be setuid to root (to
use chown(2) or chmod(2)), so this also changes nothing.

the only loss will be to programs that are not setuid to root that
might want to be able to use a random tty for a while (eg emacs(1) or

the above change should, imo, be left to the individual setting up the
read-only /dev and secured environment, not done by "us".

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."