/usr/share/doc/syslogout/examples/etc/syslogout.d/cleantmp.bash is in syslogout 0.3.9.
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 | # Remove the leftovers of $USER in /tmp
# Uncomment for debugging:
#set -x
for file in `find /tmp -user $USER -maxdepth 1 -name "*"`
do
if [ -d /var/tmp/syslogout ]; then
ls -l $file >> /var/tmp/syslogout/$USER
else
ls -l $file #&> /dev/null
fi
done
|