/usr/share/ltsp/plugins/ltsp-build-client/Debian/005-tmpdir is in ltsp-server 5.4.2-6+deb7u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | case $MODE in
# handle when TMP and TMPDIR are defined, but not present in the chroot
# http://bugs.debian.org/451878
install)
for dir in $TMP $TMPDIR ; do
if [ ! -d "$ROOT/$dir" ]; then
mkdir -p "$ROOT/$dir"
# set permissions of dir
# FIXME: handle permissions of intermediate dirs, too
chmod --reference $dir "$ROOT/$dir"
fi
done
;;
esac
|