Bug 195573
Summary: | Ckermit 8.0.211 breaks LCK.. location | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Philip Prindeville <philipp> |
Component: | ckermit | Assignee: | Peter Vrabec <pvrabec> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 5 | CC: | curtis |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-06-18 20:13:16 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Philip Prindeville
2006-06-15 19:56:27 UTC
You must be in uucp group to do "set line /dev/ttyS0" see #166155 Yeah... you're talking about FC4, and I'm talking about FC5. # uname -r 2.6.16-1.2122_FC5 # ls -l /usr/bin/kermit -rwxr-xr-x 1 root root 2534712 Feb 10 23:28 /usr/bin/kermit # rpm -q ckermit ckermit-8.0.211-4.2.1 # Hmmm... I note that "show communications" returns the wrong result, as well: (/home/philipp/) C-Kermit>show commun Communications Parameters: Line: /dev/ttyS0, speed: 9600, mode: local, modem: none Parity: none, stop-bits: 1 (8N1) Duplex: full, flow: xon/xoff, handshake: none Carrier-watch: off, close-on-disconnect: off Lockfile: /etc/locks/LCK..ttyS0 Terminal bytesize: 8, escape character: 28 (^\) Carrier Detect (CD): Off Dataset Ready (DSR): Off Clear To Send (CTS): Off Ring Indicator (RI): Off Data Terminal Ready (DTR): On Request To Send (RTS): On Type SHOW DIAL to see DIAL-related items. Type SHOW MODEM to see modem-related items. (/home/philipp/) C-Kermit> Does the problem persist even if you are in uucp group? Because it works for me: # usermod -G uucp -a someuser # su - someuser $ ckermit C-Kermit> set line /dev/ttyS0 There is same ckermit in FC-{4,5} and devel. %changelog * Fri Feb 10 2006 Jesse Keating <jkeating> - 8.0.211-4.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating <jkeating> - 8.0.211-4.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating <jkeating> - rebuilt * Tue Nov 8 2005 Tomas Mraz <tmraz> 8.0.211-4 - rebuilt with new openssl * Wed Aug 31 2005 Peter Vrabec <pvrabec> 8.0.211-3 - use baudboy.h to create per-device lock(s) in /var/lock (#166155) Well, in FC5 the group ownership of kermit is root, not uucp. So I changed that, and made the binary setgid(). That fixed not being able to do the "set line ...". Arguably, these modes should be the default in the FC5 install. In any case, it still remains that "show comm" displays the wrong lock path. This is a bug and should be re-opened. Reproducable as root. I even added uucp group membership just for giggles. root@localhost~# gpasswd -a root uucp root@localhost~# kermit C-Kermit 8.0.211, 10 Apr 2004, for Red Hat Linux 9.0 Copyright (C) 1985, 2004, Trustees of Columbia University in the City of New York. Type ? or HELP for help. (/root/) C-Kermit>show comm Communications Parameters: Line: /dev/tty, speed: unknown, mode: remote, modem: generic Parity: none, duplex: full, flow: none, handshake: none Carrier-watch: auto, close-on-disconnect: off Lockfile directory: (none) Typical port device name: /dev/ttyS0 Modem signals unavailable Type SHOW DIAL to see DIAL-related items. Type SHOW MODEM to see modem-related items. (/root/) C-Kermit>set line /dev/ttyS0 Sorry, write access to UUCP lockfile directory denied. Peter, the "ckermit" that you ran in your example above does not exist in FC5. I have identified the true source of this bug. The ckermit package has a missing dep on the lockdev package. root@localhost~# kermit C-Kermit 8.0.211, 10 Apr 2004, for Red Hat Linux 9.0 Copyright (C) 1985, 2004, Trustees of Columbia University in the City of New York. Type ? or HELP for help. (/root/) C-Kermit>set line /dev/ttyS0 Sorry, write access to UUCP lockfile directory denied. (/root/) C-Kermit>exit root@localhost~# yum -d0 -y install lockdev root@localhost~# kermit C-Kermit 8.0.211, 10 Apr 2004, for Red Hat Linux 9.0 Copyright (C) 1985, 2004, Trustees of Columbia University in the City of New York. Type ? or HELP for help. (/root/) C-Kermit>set line /dev/ttyS0 (/root/) C-Kermit>!ls /var/lock dmraid iptraf LCK.004.064 LCK...31877 LCK..ttyS0 lvm subsys (/root/) C-Kermit>quit Closing /dev/ttyS0...OK So I suppose the best solution is to add this to ckermit.spec: Requires: lockdev >= 1.0.1-8 Why this wasn't caught by the rpm dep checker is a mystery left to the @redhat experts. Requires: lockdev is fixed in ckermit-8.0.211-5.fc{5,6} |