Re: FHS compliance and UNIX sockets
>>>>> "Joey" == Joey Hess <joeyh@debian.org> writes:
Joey> Amen. per-user tmpdirs are the way to go. It would be great
Joey> if debian could somehow support them by default.
It is relatively easy to put something like this in one of your
shell script files:
if [[ -d "/tmp/$USERNAME" && ! -h "/tmp/$USERNAME" && -O "/tmp/$USERNAME" ]]
then
export TMP=/tmp/$USERNAME
else
export TMP=/tmp
fi
export TMPDIR="$TMP"
export TEMP="$TMP"
export TMPPREFIX="$TMP/zsh"
Only I don't really like having to fall back to /tmp, if
/tmp/$USERNAME is wrong...
Also some programs don't use this, eg sawfish & ssh, (probably because
this shell script doesn't get executed by the gdm login process), and
Kerberos (it uses the KRB5CCNAME environment variable).
Now this file makes me feel nervous:
>ls -l /tmp/imp.zip.2001-Jan-Wed_23:09:48__4eb85038894a6ae498b10f768f3b3e87
-rw-rw--w- 1 www-data www-data 311626 Jan 24 23:09 /tmp/imp.zip.2001-Jan-Wed_23:09:48__4eb85038894a6ae498b10f768f3b3e87
Looks like an attachment to a private E-Mail that imp saved... Group
readable by www-data? World writable?
--
Brian May <bam@debian.org>
Reply to: