Today I decided to install libpam-tmpdir on my machines.  I have added
the required line to /etc/pam.d/common-session.  When I login via ssh,
everything works as expected and TMP and TMPDIR are both set.  However,
when I login via gdm, only TMP is set.

I have also noticed that TMPDIR is unset in a number of places in /etc,
as can be seen here:

# grep -r TMPDIR . 2>&1 |grep -v ^Binary |grep -v such
./init.d/samba:unset TMPDIR
./init.d/cupsys:unset TMPDIR
./bash_completion.d/dpatch_edit_patch:    local DPEP_SOURCEDIR DPEP_OUTDIR 
DPEP_TMPDIR DPEP_ROOTCMD DPEP_NEWDESC DPEP_KEEPTEMP
./bash_completion.d/dpatch_edit_patch:            
DPEP_DO_GETOPTION="DPEP_TMPDIR="
./bash_completion.d/dpatch_edit_patch:            DPEP_TMPDIR="$(printf "%s" 
"$arg" | cut -f2- -d= )"
./rc0.d/K19samba:unset TMPDIR
./rc0.d/K20cupsys:unset TMPDIR
./rc1.d/K19samba:unset TMPDIR
./rc1.d/K20cupsys:unset TMPDIR
./rc2.d/S20samba:unset TMPDIR
./rc2.d/S20cupsys:unset TMPDIR
./rc3.d/S20samba:unset TMPDIR
./rc3.d/S20cupsys:unset TMPDIR
./rc4.d/S20samba:unset TMPDIR
./rc4.d/S20cupsys:unset TMPDIR
./rc5.d/S20samba:unset TMPDIR
./rc5.d/S20cupsys:unset TMPDIR
./rc6.d/K19samba:unset TMPDIR
./rc6.d/K20cupsys:unset TMPDIR
./X11/Xsession:  if ! ln -sf "$ERRFILE" "${TMPDIR:=/tmp}/xsession-$USER"; then
./X11/Xsession:    message "warning: unable to symlink 
\"$TMPDIR/xsession-$USER\" to" \
./X11/Xsession:             "\"$TMPDIR/xsession-$USER\"."

I am not sure if any of these occurences might impact a users
environment (I really can't see how any of them could, except for maybe
the Xsession script).  But apparently one of them is.

Regards,

-Roberto

-- 
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com

Attachment: signature.asc
Description: Digital signature

Reply via email to