Linux command
pam.d 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
View login PAM config
cat /etc/pam.d/login
View SSH PAM config
cat /etc/pam.d/sshd
View sudo PAM config
cat /etc/pam.d/sudo
View common authentication
cat /etc/pam.d/common-auth
说明
/etc/pam.d/ contains per-service PAM configuration files. Each file defines authentication rules for a specific service (login, sshd, sudo, etc.). This directory-based configuration replaced the monolithic /etc/pam.conf on modern systems.
FAQ
What is the pam.d command used for?
/etc/pam.d/ contains per-service PAM configuration files. Each file defines authentication rules for a specific service (login, sshd, sudo, etc.). This directory-based configuration replaced the monolithic /etc/pam.conf on modern systems.
How do I run a basic pam.d example?
Run `cat /etc/pam.d/login` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more pam.d examples?
This page includes 4 examples for pam.d, plus related commands for nearby Linux tasks.