Subject: cu vs. getty
To: None <netbsd-help@netbsd.org>
From: Federico Lupi <flupi@mclink.it>
List: netbsd-help
Date: 03/22/2001 21:17:15
I have a small problem with 'cu' and 'getty'. For example:
1) # ls -l /dev/tty0?
crw------- 1 uucp wheel 8, 0 Mar 22 20:39 /dev/tty00
crw------- 1 uucp wheel 8, 1 Mar 22 19:21 /dev/tty01
crw------- 1 uucp wheel 8, 2 Dec 21 21:28 /dev/tty02
crw------- 1 uucp wheel 8, 3 Dec 21 21:28 /dev/tty03
I assume that this is the default setting for NetBSD 1.4.3.
The 'cu' program now works.
# cu -l /dev/tty00
Connected
2) I activate getty on tty00 in /etc/ttys and kill -1 1
3) I disable getty on tty00 and kill -1 1. Now I have
# ls -l /dev/tty0?
crw------- 1 root wheel 8, 0 Mar 22 20:39 /dev/tty00
crw------- 1 uucp wheel 8, 1 Mar 22 19:21 /dev/tty01
crw------- 1 uucp wheel 8, 2 Dec 21 21:28 /dev/tty02
crw------- 1 uucp wheel 8, 3 Dec 21 21:28 /dev/tty03
The owner of tty00 has changed; according to the man page this
is probably caused by the ttyaction() function. But now 'cu'
stops working.
# cu -l /dev/tty00
cu: open (/dev/tty00): Permission denied
cu: All matching ports in use
4) After
# chown uucp /dev/tty00
cu starts working again
Is this the correct behaviour of cu and getty?
TIA,
Federico
--
Federico Lupi
Home page
http://www.mclink.it/personal/MG2508/