[3131] in Athena Bugs
xterm logging 6.3B/AFS
daemon@ATHENA.MIT.EDU (mar@ATHENA.MIT.EDU)
Fri Sep 8 11:59:33 1989
From: <mar@ATHENA.MIT.EDU>
Date: Fri, 8 Sep 89 11:59:15 -0400
To: bugs@ATHENA.MIT.EDU
An xterm started with a working directory which is in AFS land can't
turn on logging.
The problem is that the xterm is setuid to root, and root doesn't have
permission to write to this AFS directory. There are two possible
fixes for this:
1) Have the xterm set it's effective uid to the person who started it
when it attempts to open the log file.
2) Fix the kernel permission code so that permission is denied when
the effective UID is root, it will attempt to get permission with the
real UID if that is different. I believe that we have this
functionality on NFS filesystems, it's only AFS filesystems that
don't work.
The workaround that I've found is to soft-link /tmp/xtermlog to
~/XtermLog.{xterm's pid} and then it can begin logging into /tmp.
-Mark