Subject: Re: MAKEDEV - more woes
To: John Ostrowick <jon@macaroni.cs.wits.ac.za>
From: Bill Studenmund <wrstuden@loki.stanford.edu>
List: port-mac68k
Date: 01/30/1997 09:35:10
>
> hi. since running MAKEDEV, i can now no longer
>
> - su to root
> - login from a mac using telnet - it says login incorrect as soon as i
> type my name.
>
> any ideas what's gone wrong? it was working before i did a sh /dev/MAKEDEV
> pty0 tty0
Are you using -current? There was a bug in MAKEDEV which made the wrong
device #'s.
Make sure that the pty section looks like this:
pty*)
class=${i#pty}
case $class in
0) offset=0 name=p;;
1) offset=16 name=q;;
2) offset=32 name=r;;
3) offset=48 name=s;;
# Note that telnetd, rlogind, and xterm (at least) only look at p-s.
4) offset=64 name=t;;
*) echo bad unit for pty in: $i;;
esac
case $class in
0|1|2|3|4)
umask 0
eval `echo $offset $name | awk ' { b=$1; n=$2 } END {
for (i = 0; i < 16; i++)
printf("rm -f tty%s%x; mknod tty%s%x c 4 %d; \
rm -f pty%s%x; mknod pty%s%x c 5 %d; ", \
n, i, n, i, b+i, n, i, n, i, b+i); }'`
umask 77
;;
esac
;;
The important numbers are the 4 in "mknod tty%s%x c 4 %d" and the 5
in "mknod pty%s%x c 5 %d".
Good luck!
Bill