[5560] in testers
Athena 9.2.7: ssh leaving cruft in /tmp
daemon@ATHENA.MIT.EDU (Ken Raeburn)
Tue Jun 24 15:02:14 2003
To: testers@mit.edu
From: Ken Raeburn <raeburn@MIT.EDU>
Date: Tue, 24 Jun 2003 15:02:12 -0400
Message-ID: <tx1adc7fgej.fsf@mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
The -x option turns off X forwarding.
From all-in-one (Athena 9.2.7 Linux) to dcl (Athena 9.2.7 Solaris):
% ssh dcl.mit.edu -l root -x printenv XAUTHORITY
/tmp/xauth-root-15487/Xauthority
%
There's no need for the xauthority variable to be set, if there's no
$DISPLAY (there isn't) and no actual xauthority file (there isn't).
Even if there is some good reason for it, the empty directory should
be deleted when the user logs out; it isn't.
If I am forwarding X connections, the Xauthority file is created, and
isn't deleted when the command is finished. (Once the ssh connection
is closed, the Xauthority data isn't useful any more, is it?)
Even for sessions where X connections are forwarded, cleanup isn't
happening. On dcl right now, I've got 4 login sessions to the
machine, only one from today, and at least 15 non-empty /tmp/xauth*
directories from today.
There's also a large number of /tmp/session-raeburn-#### directories,
hanging around, mostly created within a span of about 90 minutes. I'm
not sure where they're created; having them left around could just be
a bad interaction between Athena software and the krb5 rlogind/rshd
tests I run.
Ken