dave%ucla-locus@ucla-cime.UUCP (01/09/84)
From: Dave Truesdell <cepu!ucla-cime!dave@ucla-locus>
Could anyone tell me what conditions are necessary for a dedicated
tty line? We have tried changing the owner, and mode, of /dev/"ttyname"
but root keeps grabing it back. Also, how should /etc/ttys be set up
for the line (and, should any changes be made to getty)? We are currently
running 2.9Bsd, on a PDP-11/34a.
Thanks,
In-real-life: Dave Truesdell, UCLA Crump Institute for Medical Engineering
UUCP: {...,ucbvax!ucla-s,ucla-s}!cepu!ucla-cime!dave
ARPA: cepu!ucla-cime!dave@ucla-locus.ARPAguy@rlgvax.UUCP (Guy Harris) (01/22/84)
The most likely reason the mode of the tty is being changed back is that
"getty" is being run on it; any port waiting for a login is owned by "root"
and has mode "rw--w--w-", unless "getty" has been changed not to do this.
There's probably no mysterious daemon changing the mode and owner of things
in "/dev", just good old "getty".
Guy Harris
{seismo,ihnp4,allegra}!rlgvax!guystephen@alberta.UUCP (Stephen Samuel) (01/27/84)
As far as I can see, the best way of ensuring that root doesn't re-own a tty is to move it to somewhere othere than /dev. I don't know for sure that the move will work, but i can easily see that the problem is that /dev is regularly searched for files that belong to the wrong person. If your file (tty) isn't there, then it is much less likely to be bothered.