LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pam_shells

PAM module to validate user login shells

TLDR

Require valid shell for authentication
$ auth required pam_shells.so
copy
Require valid shell for account access
$ account required pam_shells.so
copy

SYNOPSIS

pam_shells.so

DESCRIPTION

pam_shells is a PAM module that only allows access to the system if the user's shell is listed in /etc/shells. It also checks that /etc/shells is a plain file and not world-writable.The module provides both auth and account module types. It returns PAMAUTHERR if the shell is not listed, PAMSUCCESS if the shell is valid, and PAMSERVICE_ERR if the username cannot be determined.

PARAMETERS

This module does not accept any parameters.

CAVEATS

Requires /etc/shells to exist and contain valid shell paths (one absolute path per line). Users with shells not listed in /etc/shells will be denied access. Blank lines and lines starting with # in /etc/shells are ignored.

HISTORY

pam_shells is part of the Linux-PAM (Pluggable Authentication Modules) framework, providing a simple mechanism to restrict access based on whether a user has a legitimate login shell.

SEE ALSO

pam(8), pam_unix(8), pam_deny(8), chsh(1), getent(1), login(1)

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