pam_mkuser(8)
| PAM_MKUSER(8) | pam_mkuser manual | PAM_MKUSER(8) |
NAME
pam_mkuser - PAM module to create users accounts
SYNOPSIS
pam_mkuser.so [silent] [shell=/bin/sh]
DESCRIPTION
The pam_mkuser PAM module will create a user account if it does not exist when the session begins. This allows to log in absolutely new users.
The user account will not be removed after logout.
OPTIONS
silent
Don't print informative messages.
shell=/path/to/shell
Indicate an alternative shell binary to override the
default /bin/sh.
MODULE TYPES PROVIDED
Only the session module type is provided.
RETURN VALUES
PAM_BUF_ERR
Memory buffer error.
PAM_CRED_INSUFFICIENT
Unable to get the user name from the PAM stack.
PAM_PERM_DENIED
Not enough permissions to create the new account.
PAM_SUCCESS
Environment variables were set.
FILES
/bin/sh
Default shell binary
EXAMPLES
A sample /etc/pam.d/login file:
auth requisite pam_securetty.so
auth sufficient pam_ldap.so
auth required pam_unix.so
auth required pam_nologin.so
account optional pam_mkuser.so shell=/bin/bash
account sufficient pam_ldap.so
account required pam_unix.so
password required pam_unix.so
session required pam_mkhomedir.so skel=/etc/skel/ umask=0077
session required pam_unix.so
session optional pam_lastlog.so
session optional pam_mail.so standard
SEE ALSO
pam_mkhomedir(8), pam.d(5), pam(8).
AUTHOR
pam_mkuser is written by Paul Wolneykien <manowar@altlinux.org>.
| 12/10/2024 | pam_mkuser manual |
