pam-tmpdir-helper command not found

In this troubleshooting guide we learn how to fix pam-tmpdir-helper command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

pam-tmpdir-helper: command not found

or when using sudo you get the following error message

sudo: pam-tmpdir-helper: command not found

Solutions to pam-tmpdir-helper: command not found

How To Fix pam-tmpdir-helper: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pam-tmpdir-helper is provided by libpam-tmpdir package.

libpam-tmpdir is:

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

To fix this problem, we can install more using the command below.

sudo apt-get -y install libpam-tmpdir

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libpam-tmpdir.

sudo apt -y install libpam-tmpdir

Or if you have aptitude installed you can use the following command.

sudo aptitude install libpam-tmpdir

Summary

In this tutorial we learn how to fix pam-tmpdir-helper command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.