← 返回命令列表

Linux command

pam.conf 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Basic authentication entry

login auth required pam_unix.so

Account management entry

login account required pam_unix.so

Session entry

login session required pam_limits.so

Password entry

login password required pam_unix.so

说明

pam.conf is the legacy PAM configuration file format where all services are configured in a single file. Modern systems typically use the /etc/pam.d/ directory with per-service files instead. Each line defines a rule with the format: service type control module-path arguments.

参数

service
Application name.
type
auth, account, password, session.
control
required, requisite, sufficient, optional.
module
PAM module path.
arguments
Module arguments.

FAQ

What is the pam.conf command used for?

pam.conf is the legacy PAM configuration file format where all services are configured in a single file. Modern systems typically use the /etc/pam.d/ directory with per-service files instead. Each line defines a rule with the format: service type control module-path arguments.

How do I run a basic pam.conf example?

Run `login auth required pam_unix.so` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does service do in pam.conf?

Application name.