Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115689 - cu (taylor-uucp) permission problems
Summary: cu (taylor-uucp) permission problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-15 12:21 UTC by Cedric Berger
Modified: 2006-01-09 14:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cedric Berger 2005-12-15 12:21:04 UTC
# emerge taylor-uucp
# cu -l tty0
cu: creat (/var/lock/uucp/TMP0000002093): Permission denied
cu: tty0: Line in use

Problem is following:

# ls -lsa /var/lock/uucp/
total 8
4 drwxrwxr-x  2 root uucp 4096 Dec 15 15:35 .
4 drwxrwxr-x  4 root uucp 4096 Dec 15 13:53 ..

# ls -lsa `which cu`
104 -r-s--x--x  1 uucp root 102020 Dec 15 13:53 /usr/bin/cu

The problem is that cu is defined as UID=uucp, GID=root,
while /var/lock/uucp/ is the opposite. This doesn't work.

To make this work, I need to make cu setgid uucp too:

# chgrp uucp /usr/bin/cu
# chmod g+s /usr/bin/cu
# ls -lsa /usr/bin/cu
104 -r-x--s--x  1 uucp uucp 102020 Dec 15 13:53 /usr/bin/cu
# cu -l tty0
Connected.





Reproducible: Always
Steps to Reproduce:
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-06 06:24:53 UTC
Re-assign, maintainer retired.
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2006-01-08 22:33:02 UTC
taking over the maintainership
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2006-01-09 14:39:05 UTC
submitted taylor-uucp-1.07-r1 to the tree.
the new version install executables with SUID and SGID bits enabled and uuid:uuid as owner:group.