logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pam_tmpdir - PAM module for creating a secure directory for users' temporary files

Author

       Tollef Fog Heen <tfheen@err.no>

Description

       This  module  can  be  plugged  into  the  session  stack  of a given service to provide secure, per-user
       directories for temporary files.

Examples

       To allow users to login even if pam_tmpdir fails to create a safe tmpdir:

              session    optional     pam_tmpdir.so

       To deny login if an error occurs while setting up the safe tmpdir:

              session    required     pam_tmpdir.so

       NOTE: This could allow for a DoS attack if a malicious user creates /tmp/user before pam_tmpdir does.

Module Types Provided

       Although  this  is  intended to be used with the session module type, it also provides account, auth, and
       password module types.

Name

pam_tmpdir - PAM module for creating a secure directory for users' temporary files

Options

       The directory in which the users' temporary directories  are  created  can  be  set  using  an  entry  in
       /etc/security/tmpdir.conf:

       tmpdir=/path/to/tmpdir

       The default is /tmp/user.

Return Values

       PAM_SUCCESS
              The temporary directory was successfully created.

       PAM_ABORT
              An error occurred when attempting to create the temporary directory.

       PAM_SERVICE_ERR
              An internal error occurred.

See Also

pam-tmpdir-helper(8)

Synopsis

pam_tmpdir.so

See Also