LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pam_rootok

PAM module that succeeds for UID 0

TLDR

Allow root without password in /etc/pam.d/su
$ auth sufficient pam_rootok.so
copy
Enable debug logging for the module
$ auth sufficient pam_rootok.so debug
copy

SYNOPSIS

pam_rootok.so [debug]

DESCRIPTION

pam_rootok is a PAM authentication module that returns success if the calling user has a UID of 0 (root). It is most commonly used in /etc/pam.d/su to allow the root user to switch identity to any other account without being prompted for a password.It is typically combined with the sufficient control flag, so that root passes immediately and other users continue down the stack to be authenticated normally (e.g. by pam_unix or pam_wheel).The module provides only the auth management group; it has no session, password, or account semantics.

PARAMETERS

debug

Log a message to syslog (auth facility) describing the action taken.

EXAMPLES

$ # /etc/pam.d/su — let root su to anyone without a password
auth   sufficient   pam_rootok.so
auth   required     pam_unix.so
copy

CAVEATS

Only useful in auth stacks. The module checks the real UID, so it relies on the calling process actually running as root. Misconfigured PAM stacks that place this module in the wrong service file can grant unintended privilege escalation.

HISTORY

pam_rootok is part of the Linux-PAM distribution and has been included since the early releases of Linux-PAM in the late 1990s.

SEE ALSO

pam(8), su(1), pam_wheel(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