Opened 15 years ago

Closed 14 years ago

Last modified 13 years ago

#3268 closed defect (fixed)

GNU Screen pty group

Reported by: Stu Owned by: blfs-book@…
Priority: normal Milestone:
Component: BOOK Version: SVN
Severity: medium Keywords:
Cc:

Description

Section 6.6 of the LFS book sets up /etc/group so that tty is gid 4 and tape is gid 5. The GNU Screen source code assumes tty will have gid 5. PTYs created by screen sessions will thus end up with a group of "tape" instead of "tty"--which will manifest itself in subtle ways (like the mesg command from util-linux refusing the change permissions).

The best fix is obviously to update screen's logic to use getpwnam, but short of that this issue can be fixed by adding "--with-pty-group=4" to screen's configure step.

Change History (3)

comment:1 by bdubbs@…, 15 years ago

Milestone: 6.7 → current

comment:2 by bdubbs@…, 14 years ago

Resolution: → fixed
Status: new → closed

What a curious package. The code hasn't bee updated since 2006 and the gid info dates back to 1987. A proper fix to the code would be to actually ask the system what gid was associated with tty, but that capability was probably added well after this code was written.

Used the suggested --with-pty-group=4.

Fixed at revision 9903.

comment:3 by bdubbs@…, 13 years ago

Milestone: current

Milestone current deleted

Note: See TracTickets for help on using tickets.