Linux command
group.conf 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
View
cat /etc/security/group.conf
Add user
*;tty*;[user];Al0000-2400;audio
Grant
login;*;[user];Wk0800-1800;video,cdrom
Service-specific rule
sshd;*;[user];Al0000-2400;developers
Enable
auth optional pam_group.so
说明
/etc/security/group.conf configures the pam_group module, which assigns supplementary groups to users based on the service they are logging into and time of day. This PAM configuration file allows dynamic group membership without modifying /etc/group permanently. Rules are defined with five semicolon-separated fields specifying services, terminals, users, time windows, and groups to assign.
FAQ
What is the group.conf command used for?
/etc/security/group.conf configures the pam_group module, which assigns supplementary groups to users based on the service they are logging into and time of day. This PAM configuration file allows dynamic group membership without modifying /etc/group permanently. Rules are defined with five semicolon-separated fields specifying services, terminals, users, time windows, and groups to assign.
How do I run a basic group.conf example?
Run `cat /etc/security/group.conf` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more group.conf examples?
This page includes 5 examples for group.conf, plus related commands for nearby Linux tasks.