[16003] in Athena Bugs
Re: sun4 8.1.18: modem/kermit
daemon@ATHENA.MIT.EDU (John Hawkinson)
Sun Jun 28 20:48:24 1998
Date: Sun, 28 Jun 1998 20:48:09 -0400
To: Jonathon Weiss <jweiss@MIT.EDU>, Greg Hudson <ghudson@MIT.EDU>
Cc: "Roger A. Roach" <rar@MIT.EDU>, bugs@MIT.EDU
In-Reply-To: "[16002] in Athena Bugs"
From: John Hawkinson <jhawk@MIT.EDU>
Firstly, an observation:
Under Solaris, it's normally the case that you should use
/dev/cua/{a,b} for outgoing (esp. modem) connections. This may
or may not have an effect on locking.
You could have determined that this was the case by reading the zs(7D)
or se(7D) manpages (depending on what sort of serial port the sun in question
has), however it's hardly clear that this is obvious :-)
| > > It's unfortunate that you can only run kermit from the modem locker as
| > > root, because of its UUCP locking support (the /var/spool/locks
| > > problem). I'm not sure if it's wise to disable UUCP locking or not.
| > > I'm also not sure what our behavior is under 8.2, where kermit is
| > > actually built as part of the release.
|
| The behavior is the same in 8.2. Instead of disabling UUCP locking,
| what do we have to do to make it work correctly? Maybe create the dir
| and use setuid or setgid?
Secondly, I don't see this behavior under 8.2. As a non-root user,
locking fails, but so does the connection:
[x15-cruise-basselope!jhawk] ~> which kermit
/usr/athena/bin/kermit
[x15-cruise-basselope!jhawk] ~> kermit
C-Kermit 6.0.192, 6 Sep 96, for Solaris 2.x
Copyright (C) 1985, 1996,
Trustees of Columbia University in the City of New York.
Default file-transfer mode is TEXT
Type ? or HELP for help.
[/afs/athena.mit.edu/user/j/h/jhawk] C-Kermit>set line /dev/term/a
/var/spool/locks: Permission denied
Sorry, access to lock denied: /dev/term/a
[/afs/athena.mit.edu/user/j/h/jhawk] C-Kermit>c
Sorry, you must SET LINE or SET HOST first
[ See below for the case where the user has permissions on the device ]
But as root, it works fine (no locking commentary):
[x15-cruise-basselope!jhawk] ~# /usr/athena/bin/kermit
C-Kermit 6.0.192, 6 Sep 96, for Solaris 2.x
Copyright (C) 1985, 1996,
Trustees of Columbia University in the City of New York.
Default file-transfer mode is TEXT
Type ? or HELP for help.
[/afs/athena.mit.edu/user/j/h/jhawk] C-Kermit>set line /dev/term/a
[/afs/athena.mit.edu/user/j/h/jhawk] C-Kermit>c
Connecting to /dev/term/a, speed 9600.
I observe that Jonathon and rar both have .kermrc files, but
Jonathon's doesn't seem to cause any problems for me
on x15-cruise-basselope.
rar's .kermrc certainly does generate for me the errors he saw,
though.
If I make /dev/cua/b world-writable, then as me, I do indeed
see a hard locking failure from kermit, however the operating system
serial port utilities don't fail:
E.g.:
[x15-cruise-basselope!jhawk] ~> cu -l cua/b
Connected
[x15-cruise-basselope!jhawk] ~> tip -v /dev/cua/b
connected
This strongly implies that kermit's locking is wrong, since it
doesn't agree with the OS terminal software.
--jhawk