Bug 56159
Summary: | pam-0.75-19 leaves turds in /root when I su | ||
---|---|---|---|
Product: | [Retired] Red Hat Raw Hide | Reporter: | Jonathan Kamens <jik> |
Component: | pam | Assignee: | Nalin Dahyabhai <nalin> |
Status: | CLOSED NOTABUG | QA Contact: | Aaron Brown <abrown> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-11-13 20:38:07 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
Jonathan Kamens
2001-11-13 14:56:13 UTC
It should already be cleaned up when you exit the shell (or program) started by su. Is this not happening? If you "su" once, then "su" again on another VT or in another terminal window, can you see if a temporary file is being generated when the session is opened, and if it's removed when the session is closed? If you add "debug" to the end of the pam_xauth line in /etc/pam.d/su, configure syslog to log "debug" messages, and "su", then exit, does it log removal of the file? OK, you're right, it does get removed when I exit from the su shell. I wish there was a way to do this other than creating a temporary file, though. If the su process is killed or crashes or something, it'll be left around as cruft forever. Yes, that is a problem. The alternative (use .Xauthority and refcounting) was very complicated, and I think it was the source of the occasional "su segfaults on logout" bug. Another alternative (use temp files in /tmp) is no good because xauth uses lockfiles instead of "real" locking, so it can be screwed up easily, even by accident. |