Linux command
pam_unix 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Standard Unix authentication
auth required pam_unix.so
Password management
password required pam_unix.so sha512 shadow
Session management
session required pam_unix.so
Null password check
auth required pam_unix.so nullok
说明
pam_unix provides standard Unix authentication. Uses /etc/passwd and shadow. The module handles basic auth. Core PAM component.
参数
- nullok
- Allow empty passwords.
- sha512
- Use SHA-512 hashing.
- shadow
- Use shadow passwords.
- remember=_N_
- Remember N passwords.
- try_first_pass
- Use previous password.
FAQ
What is the pam_unix command used for?
pam_unix provides standard Unix authentication. Uses /etc/passwd and shadow. The module handles basic auth. Core PAM component.
How do I run a basic pam_unix example?
Run `auth required pam_unix.so` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does nullok do in pam_unix?
Allow empty passwords.