Bug 56159 - pam-0.75-19 leaves turds in /root when I su
Summary: pam-0.75-19 leaves turds in /root when I su
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: pam
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-11-13 14:56 UTC by Jonathan Kamens
Modified: 2007-04-18 16:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-11-13 20:38:07 UTC
Embargoed:


Attachments (Terms of Use)

Description Jonathan Kamens 2001-11-13 14:56:13 UTC
Every time I su to root after installing pam-0.75-19, a file with a random
name matching the pattern /root/.xauth* is left on my machine.  This needs
to be cleaned up.

Comment 1 Nalin Dahyabhai 2001-11-13 20:37:59 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?

Comment 2 Jonathan Kamens 2001-11-13 20:44:30 UTC
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.


Comment 3 Nalin Dahyabhai 2001-11-13 21:06:12 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.