pam_console_apply(8)
π pam_console_apply (8) β System Administrator's Manual β¨
okay bestie, heads up: this whole page is from the System Administrator's Manual, and honestly? it's giving "small helper binary with a lot of opinions about who gets to touch your devices." let's get into it π
πΈ NAME πΈ
pam_console_apply β set or revoke permissions for users at the system console π
β¨ SYNOPSIS β¨
pam_console_apply [-f <fstab file>] [-c <console.perms file>] [-r] [-t
<tty>] [-s] [-d] [<device file> ...]
π¦ DESCRIPTION π¦
okay so pam_console_apply is a little helper executable that sets or resets permissions on device nodes. that's literally its whole job, and it does it well π
here's the vibe: if /var/run/console.lock exists, pam_console_apply will grant permissions to the user listed in there. if the lock file does not exist, permissions get reset according to the defaults set in console.perms files β which are normally configured so that root owns the devices. no lock, no special user, root takes the wheel π
and when it's initializing its configuration? the order matters, so listen up: it first parses /etc/security/console.perms, and then it searches for files ending with the .perms suffix in the /etc/security/console.perms.d directory. those files are parsed in lexical order in the "C" locale π. permission rules are appended to a global list (so nothing gets overwritten there), but console and device class definitions override previous definitions of the same class. iykyk π§
π ARGUMENTS π
-cβ load a differentconsole.permsfile than the default one ποΈ-fβ load a different fstab file than the default one (/etc/fstab) π-rβ signalspam_console_applyto reset permissions. the default behavior is to set permissions so that the user listed in/var/run/console.lockhas access to the devices β and to reset permissions if no such file exists π-tβ use<tty>to match the console class in theconsole.permsfile. the default istty0π₯οΈ-sβ write error messages to the system log instead ofstderrπ-dβ log/display messages useful for debugging π
the optional <device file> arguments constrain what files should be affected by pam_console_apply. if you don't specify them, permissions are changed on all files specified in the console.perms file. no cap, all of them π
π FILES π
/var/run/console.lock
/etc/security/console.perms
/etc/security/console.perms.d/50-default.perms
these are the little icons of the operation, bestie β know them, love them π«Ά
π SEE ALSO π
go read those too, they're literally the extended lore π
π BUGS π
"Let's hope not" β the manpage's words, not mine, and honestly iconic π. but if you do find any, please report them via the "Bug Track" link at http://bugzilla.redhat.com/bugzilla/ π₯
π AUTHORS π
Nalin Dahyabhai <nalin@redhat.com>, using code shamelessly stolen from parts of pam_console. the audacity, the confidence, we respect it π
Support of console.perms.d and other improvements by Tomas Mraz <tmraz@redhat.com>. king behavior π
one tiny reminder bestie: this is a permissions tool for device nodes, so please don't go feral with it π
that's the whole page! brought to you by Red Hat, dated 2005/5/2 β a certified classic, still slaying in pam_console_apply(8) form πβ¨ bye bestie, go set some permissions responsibly π
π¦ where this page comes from
- centos-stream 9: pam 1.5.1-30.el9 Β· BSD and GPLv2+
- centos-stream 9: pam 1.5.1-30.el9 Β· BSD and GPLv2+
- Copyright 2001 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms