LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pam_group

PAM module for group access based on login context

TLDR

Enable group assignment in PAM config
$ auth required pam_group.so
copy
Grant audio group to all users at all times
$ echo "* ; * ; * ; Al0000-2400 ; audio" >> /etc/security/group.conf
copy
Grant video group to users on tty devices
$ echo "* ; tty* ; * ; Al0000-2400 ; video" >> /etc/security/group.conf
copy

SYNOPSIS

pam_group.so

DESCRIPTION

pam_group is a PAM module that grants supplementary group memberships during the credential setting phase of authentication. It does not authenticate the user. Memberships are granted based on the service being accessed, the terminal, the user, and the time of login, as configured in /etc/security/group.conf. Groups are added in addition to those in /etc/group.

PARAMETERS

Configuration in /etc/security/group.conf:Format: services ; ttys ; users ; times ; groupsThis module does not accept any options.

CAVEATS

Only the auth module type is provided. Requires /etc/security/group.conf to be configured. Once granted group membership, a user could attempt to create a setgid binary; mount filesystems with the nosuid option to mitigate this.

SEE ALSO

group.conf(5), pam(8), pam.d(5), pam_time(8), pam_unix(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid