pam-tmpdir-helper

automatic per-user temporary directories

Install

All systems
curl cmd.cat/pam-tmpdir-helper.sh
Debian Debian
apt-get install libpam-tmpdir
Ubuntu
apt-get install libpam-tmpdir
image/svg+xml Kali Linux
apt-get install libpam-tmpdir
Windows (WSL2)
sudo apt-get update sudo apt-get install libpam-tmpdir
Raspbian
apt-get install libpam-tmpdir

libpam-tmpdir

automatic per-user temporary directories

Many programs use $TMPDIR for storing temporary files. Not all of them are good at securing the permissions of those files. libpam-tmpdir sets $TMPDIR and $TMP for PAM sessions and sets the permissions quite tight. This helps system security by having an extra layer of security, making such symlink attacks and other /tmp based attacks harder or impossible