LOGIN.ACCESS(5)
πΈ NAME πΈ
okay so login.access(5) β from the File Formats Manual β is literally the login access control table, bestie. Itβs the file that says which (user, host) and/or (user, tty) combos get their login accepted and which ones get refused, and the way that it works is honestly iconic. π
β¨ SYNOPSIS β¨
/etc/login.access
π DESCRIPTION π
The login.access file specifies (user, host) combinations and/or (user, tty) combinations for which a login will be either accepted or refused.
When someone logs in, login.access is scanned for the first entry that matches the (user, host) combination, or, in case of non-networked logins, the first entry that matches the (user, tty) combination. The permissions field of that table entry determines whether the login will be accepted or refused. fr fr, first match wins.
Each line of the login access control table has three fields separated by a : character:
permission:users:origins
- The first field should be a
+(access granted) or-(access denied) character. - The second field should be a list of one or more login names, group names, or
ALL(always matches). Group names must be enclosed in parentheses if the pam module specification forpam_login_accessspecifies thenodefgroupoption. Otherwise, group names will only match if no usernames match. - The third field should be a list of one or more tty names (for non-networked logins), host names, domain names (begin with
.), host addresses, internet network numbers (end with.),ALL(always matches) orLOCAL(matches any string that does not contain a.character). If you run NIS you can use@netgroupnamein host or user patterns.
The EXCEPT operator makes it possible to write very compact rules. Obsessed with a compact rule moment. β¨
ngl the group file is searched only when a name does not match that of the logged-in user. Only groups are matched in which users are explicitly listed: the program does not look at a user's primary group id value. π«Ά
π FILES π
/etc/login.accessβ login access control table
π SEE ALSO π
π AUTHORS π
Guido van Rooij
k bye bestie π«Ά this oneβs brought to you by Debian, dated January 30, 2020, and itβs LOGIN.ACCESS(5) β mwah π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms