11eaf0ac3Slogwang.\" Copyright (c) 1996 David Nugent <[email protected]> 21eaf0ac3Slogwang.\" All rights reserved. 31eaf0ac3Slogwang.\" 41eaf0ac3Slogwang.\" Redistribution and use in source and binary forms, with or without 51eaf0ac3Slogwang.\" modification, is permitted provided that the following conditions 61eaf0ac3Slogwang.\" are met: 71eaf0ac3Slogwang.\" 1. Redistributions of source code must retain the above copyright 81eaf0ac3Slogwang.\" notice immediately at the beginning of the file, without modification, 91eaf0ac3Slogwang.\" this list of conditions, and the following disclaimer. 101eaf0ac3Slogwang.\" 2. Redistributions in binary form must reproduce the above copyright 111eaf0ac3Slogwang.\" notice, this list of conditions and the following disclaimer in the 121eaf0ac3Slogwang.\" documentation and/or other materials provided with the distribution. 131eaf0ac3Slogwang.\" 3. This work was done expressly for inclusion into FreeBSD. Other use 141eaf0ac3Slogwang.\" is permitted provided this notation is included. 151eaf0ac3Slogwang.\" 4. Absolutely no warranty of function or purpose is made by the author 161eaf0ac3Slogwang.\" David Nugent. 171eaf0ac3Slogwang.\" 5. Modifications may be freely made to this file providing the above 181eaf0ac3Slogwang.\" conditions are met. 191eaf0ac3Slogwang.\" 201eaf0ac3Slogwang.\" $FreeBSD$ 211eaf0ac3Slogwang.\" 22*22ce4affSfengbojiang.Dd May 10, 2020 231eaf0ac3Slogwang.Dt LOGIN.CONF 5 241eaf0ac3Slogwang.Os 251eaf0ac3Slogwang.Sh NAME 261eaf0ac3Slogwang.Nm login.conf 271eaf0ac3Slogwang.Nd login class capability database 281eaf0ac3Slogwang.Sh SYNOPSIS 291eaf0ac3Slogwang.Pa /etc/login.conf , 301eaf0ac3Slogwang.Pa ~/.login_conf 311eaf0ac3Slogwang.Sh DESCRIPTION 321eaf0ac3Slogwang.Nm 331eaf0ac3Slogwangcontains various attributes and capabilities of login classes. 341eaf0ac3SlogwangA login class (an optional annotation against each record in the user 351eaf0ac3Slogwangaccount database, 361eaf0ac3Slogwang.Pa /etc/master.passwd ) 371eaf0ac3Slogwangdetermines session accounting, resource limits and user environment settings. 381eaf0ac3SlogwangIt is used by various programs in the system to set up a user's login 391eaf0ac3Slogwangenvironment and to enforce policy, accounting and administrative restrictions. 401eaf0ac3SlogwangIt also provides the means by which users are able to be 411eaf0ac3Slogwangauthenticated to the system and the types of authentication available. 421eaf0ac3SlogwangAttributes in addition to the ones described here are available with 431eaf0ac3Slogwangthird-party packages. 441eaf0ac3Slogwang.Pp 451eaf0ac3SlogwangA special record "default" in the system user class capability database 461eaf0ac3Slogwang.Pa /etc/login.conf 471eaf0ac3Slogwangis used automatically for any 481eaf0ac3Slogwangnon-root user without a valid login class in 491eaf0ac3Slogwang.Pa /etc/master.passwd . 501eaf0ac3SlogwangA user with a uid of 0 without a valid login class will use the record 511eaf0ac3Slogwang"root" if it exists, or "default" if not. 521eaf0ac3Slogwang.Pp 531eaf0ac3SlogwangUsers may individually create a file called 541eaf0ac3Slogwang.Pa .login_conf 551eaf0ac3Slogwangin their home directory using the same format, consisting of a single 561eaf0ac3Slogwangentry with a record id of "me". 571eaf0ac3SlogwangIf present, this file is used by 581eaf0ac3Slogwang.Xr login 1 591eaf0ac3Slogwangto set user-defined environment settings which override those specified 601eaf0ac3Slogwangin the system login capabilities database. 611eaf0ac3SlogwangOnly a subset of login capabilities may be overridden, typically those 621eaf0ac3Slogwangwhich do not involve authentication, resource limits and accounting. 631eaf0ac3Slogwang.Pp 641eaf0ac3SlogwangRecords in a class capabilities database consist of a number of 651eaf0ac3Slogwangcolon-separated fields. 661eaf0ac3SlogwangThe first entry for each record gives one or more names that a record is 671eaf0ac3Slogwangto be known by, each separated by a '|' character. 681eaf0ac3SlogwangThe first name is the most common abbreviation. 691eaf0ac3SlogwangThe last name given should be a long name that is more descriptive 701eaf0ac3Slogwangof the capability entry, and all others are synonyms. 711eaf0ac3SlogwangAll names but the last should be in lower case and contain no blanks; 721eaf0ac3Slogwangthe last name may contain upper case characters and blanks for 731eaf0ac3Slogwangreadability. 741eaf0ac3Slogwang.Pp 751eaf0ac3SlogwangNote that since a colon 761eaf0ac3Slogwang.Pq Ql :\& 771eaf0ac3Slogwangis used to separate capability entries, a 781eaf0ac3Slogwang.Ql \ec 791eaf0ac3Slogwangescape sequence must be used to embed a literal colon in the 801eaf0ac3Slogwangvalue or name of a capability. 811eaf0ac3Slogwang.Pp 821eaf0ac3SlogwangThe default 831eaf0ac3Slogwang.Pa /etc/login.conf 841eaf0ac3Slogwangshipped with 851eaf0ac3Slogwang.Fx 861eaf0ac3Slogwangis an out of the box configuration. 871eaf0ac3SlogwangWhenever changes to this, or 881eaf0ac3Slogwangthe user's 891eaf0ac3Slogwang.Pa ~/.login_conf , 901eaf0ac3Slogwangfile are made, the modifications will not be picked up until 911eaf0ac3Slogwang.Xr cap_mkdb 1 921eaf0ac3Slogwangis used to compile the file into a database. 931eaf0ac3SlogwangThis database file will have a 941eaf0ac3Slogwang.Pa .db 951eaf0ac3Slogwangextension and is accessed through 961eaf0ac3Slogwang.Xr cgetent 3 . 971eaf0ac3SlogwangSee 981eaf0ac3Slogwang.Xr getcap 3 991eaf0ac3Slogwangfor a more in-depth description of the format of a capability database. 1001eaf0ac3Slogwang.Sh CAPABILITIES 1011eaf0ac3SlogwangFields within each record in the database follow the 1021eaf0ac3Slogwang.Xr getcap 3 1031eaf0ac3Slogwangconventions for boolean, type string 1041eaf0ac3Slogwang.Ql \&= 1051eaf0ac3Slogwangand type numeric 1061eaf0ac3Slogwang.Ql \&# , 1071eaf0ac3Slogwangalthough type numeric is deprecated in favour of the string format and 1081eaf0ac3Slogwangeither form is accepted for a numeric datum. 1091eaf0ac3SlogwangValues fall into the following categories: 1101eaf0ac3Slogwang.Bl -tag -width "program" 1111eaf0ac3Slogwang.It bool 1121eaf0ac3SlogwangIf the name is present, then the boolean value is true; otherwise, it is 1131eaf0ac3Slogwangfalse 1141eaf0ac3Slogwang.It file 1151eaf0ac3SlogwangPath name to a data file 1161eaf0ac3Slogwang.It program 1171eaf0ac3SlogwangPath name to an executable file 1181eaf0ac3Slogwang.It list 1191eaf0ac3SlogwangA list of values (or pairs of values) separated by commas or spaces 1201eaf0ac3Slogwang.It path 1211eaf0ac3SlogwangA space or comma separated list of path names, following the usual csh 1221eaf0ac3Slogwangconventions (leading tilde with and without username being expanded to 1231eaf0ac3Slogwanghome directories etc.) 1241eaf0ac3Slogwang.It number 1251eaf0ac3SlogwangA numeric value, either decimal (default), hexadecimal (with leading 0x), 1261eaf0ac3Slogwangor octal (with a leading 0). 1271eaf0ac3SlogwangWith a numeric type, only one numeric value is allowed. 1281eaf0ac3SlogwangNumeric types may also be specified in string format (i.e., the capability 1291eaf0ac3Slogwangtag being delimited from the value by '=' instead of '#'). 1301eaf0ac3SlogwangWhichever method is used, then all records in the database must use the 1311eaf0ac3Slogwangsame method to allow values to be correctly overridden in interpolated 1321eaf0ac3Slogwangrecords. 1331eaf0ac3SlogwangA numeric value may be infinite. 1341eaf0ac3Slogwang.It size 1351eaf0ac3SlogwangA number which expresses a size. 1361eaf0ac3SlogwangThe default interpretation of a value is the number of bytes, but a 1371eaf0ac3Slogwangsuffix may specify alternate units: 1381eaf0ac3Slogwang.Bl -tag -offset indent -compact -width xxxx 1391eaf0ac3Slogwang.It b 1401eaf0ac3Slogwangexplicitly selects 512-byte blocks 1411eaf0ac3Slogwang.It k 1421eaf0ac3Slogwangselects kilobytes (1024 bytes) 1431eaf0ac3Slogwang.It m 1441eaf0ac3Slogwangspecifies a multiplier of 1 megabyte (1048576 bytes), 1451eaf0ac3Slogwang.It g 1461eaf0ac3Slogwangspecifies units of gigabytes, and 1471eaf0ac3Slogwang.It t 1481eaf0ac3Slogwangrepresents terabytes. 1491eaf0ac3Slogwang.El 1501eaf0ac3SlogwangA size value is a numeric quantity and case of the suffix is not significant. 1511eaf0ac3SlogwangConcatenated values are added together. 1521eaf0ac3SlogwangA size value may be infinite. 1531eaf0ac3Slogwang.It time 1541eaf0ac3SlogwangA period of time, by default in seconds. 1551eaf0ac3SlogwangA prefix may specify a different unit: 1561eaf0ac3Slogwang.Bl -tag -offset indent -compact -width xxxx 1571eaf0ac3Slogwang.It y 1581eaf0ac3Slogwangindicates the number of 365 day years, 1591eaf0ac3Slogwang.It w 1601eaf0ac3Slogwangindicates the number of weeks, 1611eaf0ac3Slogwang.It d 1621eaf0ac3Slogwangthe number of days, 1631eaf0ac3Slogwang.It h 1641eaf0ac3Slogwangthe number of hours, 1651eaf0ac3Slogwang.It m 1661eaf0ac3Slogwangthe number of minutes, and 1671eaf0ac3Slogwang.It s 1681eaf0ac3Slogwangthe number of seconds. 1691eaf0ac3Slogwang.El 1701eaf0ac3SlogwangConcatenated values are added together. 1711eaf0ac3SlogwangFor example, 2 hours and 40 minutes may be written either as 1721eaf0ac3Slogwang9600s, 160m or 2h40m. 1731eaf0ac3SlogwangA time value may be infinite. 1741eaf0ac3Slogwang.El 1751eaf0ac3Slogwang.Pp 1761eaf0ac3Slogwang.Dq infinity , 1771eaf0ac3Slogwang.Dq inf , 1781eaf0ac3Slogwang.Dq unlimited , 1791eaf0ac3Slogwang.Dq unlimit, 1801eaf0ac3Slogwangand -1 1811eaf0ac3Slogwangare considered infinite values. 1821eaf0ac3Slogwang.Pp 1831eaf0ac3SlogwangThe usual convention to interpolate capability entries using the special 1841eaf0ac3Slogwang.Em tc=value 1851eaf0ac3Slogwangnotation may be used. 1861eaf0ac3Slogwang.Sh RESOURCE LIMITS 1871eaf0ac3Slogwang.Bl -column pseudoterminals indent indent 1881eaf0ac3Slogwang.It Sy "Name Type Notes Description" 1891eaf0ac3Slogwang.It "coredumpsize size Maximum coredump size limit." 1901eaf0ac3Slogwang.It "cputime time CPU usage limit." 1911eaf0ac3Slogwang.It "datasize size Maximum data size limit." 1921eaf0ac3Slogwang.It "filesize size Maximum file size limit." 1931eaf0ac3Slogwang.It "maxproc number Maximum number of processes." 1941eaf0ac3Slogwang.It "memorylocked size Maximum locked in core memory size limit." 1951eaf0ac3Slogwang.It "memoryuse size Maximum of core memory use size limit." 1961eaf0ac3Slogwang.It "openfiles number Maximum number of open files per process." 1971eaf0ac3Slogwang.It "sbsize size Maximum permitted socketbuffer size." 1981eaf0ac3Slogwang.It "vmemoryuse size Maximum permitted total VM usage per process." 1991eaf0ac3Slogwang.It "stacksize size Maximum stack size limit." 2001eaf0ac3Slogwang.It "pseudoterminals number Maximum number of pseudo-terminals." 2011eaf0ac3Slogwang.It "swapuse size Maximum swap space size limit." 2021eaf0ac3Slogwang.It "umtxp number Maximum number of process-shared pthread locks." 2031eaf0ac3Slogwang.El 2041eaf0ac3Slogwang.Pp 2051eaf0ac3SlogwangThese resource limit entries actually specify both the maximum 2061eaf0ac3Slogwangand current limits (see 2071eaf0ac3Slogwang.Xr getrlimit 2 ) . 2081eaf0ac3SlogwangThe current (soft) limit is the one normally used, although the user is 2091eaf0ac3Slogwangpermitted to increase the current limit to the maximum (hard) limit. 2101eaf0ac3SlogwangThe maximum and current limits may be specified individually by appending a 2111eaf0ac3Slogwang-max or -cur to the capability name. 2121eaf0ac3Slogwang.Sh ENVIRONMENT 2131eaf0ac3Slogwang.Bl -column ignorenologin indent xbinxxusrxbin 2141eaf0ac3Slogwang.It Sy "Name Type Notes Description" 2151eaf0ac3Slogwang.It "charset string Set $MM_CHARSET environment variable to the specified" 2161eaf0ac3Slogwangvalue. 2171eaf0ac3Slogwang.It "cpumask string List of cpus to bind the user to." 2181eaf0ac3SlogwangThe syntax is the same as for the 2191eaf0ac3Slogwang.Fl l 2201eaf0ac3Slogwangargument of 2211eaf0ac3Slogwang.Xr cpuset 1 2221eaf0ac3Slogwangor the word 2231eaf0ac3Slogwang.Ql default . 2241eaf0ac3SlogwangIf set to 2251eaf0ac3Slogwang.Ql default 2261eaf0ac3Slogwangno action is taken. 2271eaf0ac3Slogwang.It "hushlogin bool false Same as having a ~/.hushlogin file." 2281eaf0ac3Slogwang.It "ignorenologin bool false Login not prevented by nologin." 2291eaf0ac3Slogwang.It "ftp-chroot bool false Limit FTP access with" 2301eaf0ac3Slogwang.Xr chroot 2 2311eaf0ac3Slogwangto the 2321eaf0ac3Slogwang.Ev HOME 2331eaf0ac3Slogwangdirectory of the user. 2341eaf0ac3SlogwangSee 2351eaf0ac3Slogwang.Xr ftpd 8 2361eaf0ac3Slogwangfor details. 2371eaf0ac3Slogwang.It "label string Default MAC policy; see" 2381eaf0ac3Slogwang.Xr maclabel 7 . 2391eaf0ac3Slogwang.It "lang string Set $LANG environment variable to the specified value." 240*22ce4affSfengbojiang.It "mail string Set $MAIL environment variable to the specified value." 2411eaf0ac3Slogwang.It "manpath path Default search path for manpages." 2421eaf0ac3Slogwang.It "nocheckmail bool false Display mail status at login." 2431eaf0ac3Slogwang.It "nologin file If the file exists it will be displayed and" 2441eaf0ac3Slogwangthe login session will be terminated. 2451eaf0ac3Slogwang.It "path path /bin /usr/bin Default search path." 2461eaf0ac3Slogwang.It "priority number Initial priority (nice) level." 2471eaf0ac3Slogwang.It "requirehome bool false Require a valid home directory to login." 2481eaf0ac3Slogwang.It "setenv list A comma-separated list of environment variables and" 2491eaf0ac3Slogwangvalues to which they are to be set. 2501eaf0ac3Slogwang.It "shell prog Session shell to execute rather than the" 2511eaf0ac3Slogwangshell specified in the passwd file. 2521eaf0ac3SlogwangThe SHELL environment variable will 2531eaf0ac3Slogwangcontain the shell specified in the password file. 2541eaf0ac3Slogwang.It "term string Default terminal type if not able to determine" 2551eaf0ac3Slogwangfrom other means. 2561eaf0ac3Slogwang.It "timezone string Default value of $TZ environment variable." 2571eaf0ac3Slogwang.It "umask number 022 Initial umask. Should always have a leading 0 to" 2581eaf0ac3Slogwangensure octal interpretation. 2591eaf0ac3Slogwang.It "welcome file /etc/motd File containing welcome message." 2601eaf0ac3Slogwang.El 2611eaf0ac3Slogwang.Sh AUTHENTICATION 2621eaf0ac3Slogwang.Bl -column passwd_prompt indent indent 2631eaf0ac3Slogwang.It Sy "Name Type Notes Description" 2641eaf0ac3Slogwang.\" .It "approve program Program to approve login. 2651eaf0ac3Slogwang.It "copyright file File containing additional copyright information" 2661eaf0ac3Slogwang.It "host.allow list List of remote host wildcards from which users in" 2671eaf0ac3Slogwangthe class may access. 2681eaf0ac3Slogwang.It "host.deny list List of remote host wildcards from which users" 2691eaf0ac3Slogwangin the class may not access. 2701eaf0ac3Slogwang.It "login_prompt string The login prompt given by" 2711eaf0ac3Slogwang.Xr login 1 2721eaf0ac3Slogwang.It "login-backoff number 3 The number of login attempts" 2731eaf0ac3Slogwangallowed before the backoff delay is inserted after each subsequent 2741eaf0ac3Slogwangattempt. 2751eaf0ac3SlogwangThe backoff delay is the number of tries above 2761eaf0ac3Slogwang.Em login-backoff 2771eaf0ac3Slogwangmultiplied by 5 seconds. 2781eaf0ac3Slogwang.It "login-retries number 10 The number of login attempts" 2791eaf0ac3Slogwangallowed before the login fails. 2801eaf0ac3Slogwang.It "passwd_format string sha512 The encryption format that new or" 2811eaf0ac3Slogwangchanged passwords will use. 2821eaf0ac3SlogwangValid values include "des", "md5", "blf", "sha256" and "sha512"; see 2831eaf0ac3Slogwang.Xr crypt 3 2841eaf0ac3Slogwangfor details. 2851eaf0ac3SlogwangNIS clients using a 2861eaf0ac3Slogwang.No non- Ns Fx 2871eaf0ac3SlogwangNIS server should probably use "des". 2881eaf0ac3Slogwang.It "passwd_prompt string The password prompt presented by" 2891eaf0ac3Slogwang.Xr login 1 2901eaf0ac3Slogwang.It "times.allow list List of time periods during which" 2911eaf0ac3Slogwanglogins are allowed. 2921eaf0ac3Slogwang.It "times.deny list List of time periods during which logins are" 2931eaf0ac3Slogwangdisallowed. 2941eaf0ac3Slogwang.It "ttys.allow list List of ttys and ttygroups which users" 2951eaf0ac3Slogwangin the class may use for access. 2961eaf0ac3Slogwang.It "ttys.deny list List of ttys and ttygroups which users" 2971eaf0ac3Slogwangin the class may not use for access. 2981eaf0ac3Slogwang.It "warnexpire time Advance notice for pending account expiry." 2991eaf0ac3Slogwang.It "warnpassword time Advance notice for pending password expiry." 3001eaf0ac3Slogwang.\".It "widepasswords bool false Use the wide password format. The wide password 3011eaf0ac3Slogwang.\" format allows up to 128 significant characters in the password. 3021eaf0ac3Slogwang.El 3031eaf0ac3Slogwang.Pp 3041eaf0ac3SlogwangThese fields are intended to be used by 3051eaf0ac3Slogwang.Xr passwd 1 3061eaf0ac3Slogwangand other programs in the login authentication system. 3071eaf0ac3Slogwang.Pp 3081eaf0ac3SlogwangCapabilities that set environment variables are scanned for both 3091eaf0ac3Slogwang.Ql \&~ 3101eaf0ac3Slogwangand 3111eaf0ac3Slogwang.Ql \&$ 3121eaf0ac3Slogwangcharacters, which are substituted for a user's home directory and name 3131eaf0ac3Slogwangrespectively. 3141eaf0ac3SlogwangTo pass these characters literally into the environment variable, escape 3151eaf0ac3Slogwangthe character by preceding it with a backslash '\\'. 3161eaf0ac3Slogwang.Pp 3171eaf0ac3SlogwangThe 3181eaf0ac3Slogwang.Em host.allow 3191eaf0ac3Slogwangand 3201eaf0ac3Slogwang.Em host.deny 3211eaf0ac3Slogwangentries are comma separated lists used for checking remote access to the system, 3221eaf0ac3Slogwangand consist of a list of hostnames and/or IP addresses against which remote 3231eaf0ac3Slogwangnetwork logins are checked. 3241eaf0ac3SlogwangItems in these lists may contain wildcards in the form used by shell programs 3251eaf0ac3Slogwangfor wildcard matching (See 3261eaf0ac3Slogwang.Xr fnmatch 3 3271eaf0ac3Slogwangfor details on the implementation). 3281eaf0ac3SlogwangThe check on hosts is made against both the remote system's Internet address 3291eaf0ac3Slogwangand hostname (if available). 3301eaf0ac3SlogwangIf both lists are empty or not specified, then logins from any remote host 3311eaf0ac3Slogwangare allowed. 3321eaf0ac3SlogwangIf host.allow contains one or more hosts, then only remote systems matching 3331eaf0ac3Slogwangany of the items in that list are allowed to log in. 3341eaf0ac3SlogwangIf host.deny contains one or more hosts, then a login from any matching hosts 3351eaf0ac3Slogwangwill be disallowed. 3361eaf0ac3Slogwang.Pp 3371eaf0ac3SlogwangThe 3381eaf0ac3Slogwang.Em times.allow 3391eaf0ac3Slogwangand 3401eaf0ac3Slogwang.Em times.deny 3411eaf0ac3Slogwangentries consist of a comma-separated list of time periods during which the users 3421eaf0ac3Slogwangin a class are allowed to be logged in. 3431eaf0ac3SlogwangThese are expressed as one or more day codes followed by a start and end times 3441eaf0ac3Slogwangexpressed in 24 hour format, separated by a hyphen or dash. 3451eaf0ac3SlogwangFor example, MoThSa0200-1300 translates to Monday, Thursday and Saturday between 3461eaf0ac3Slogwangthe hours of 2 am and 1 p.m.. 3471eaf0ac3SlogwangIf both of these time lists are empty, users in the class are allowed access at 3481eaf0ac3Slogwangany time. 3491eaf0ac3SlogwangIf 3501eaf0ac3Slogwang.Em times.allow 3511eaf0ac3Slogwangis specified, then logins are only allowed during the periods given. 3521eaf0ac3SlogwangIf 3531eaf0ac3Slogwang.Em times.deny 3541eaf0ac3Slogwangis specified, then logins are denied during the periods given, regardless of whether 3551eaf0ac3Slogwangone of the periods specified in 3561eaf0ac3Slogwang.Em times.allow 3571eaf0ac3Slogwangapplies. 3581eaf0ac3Slogwang.Pp 3591eaf0ac3SlogwangNote that 3601eaf0ac3Slogwang.Xr login 1 3611eaf0ac3Slogwangenforces only that the actual login falls within periods allowed by these entries. 3621eaf0ac3SlogwangFurther enforcement over the life of a session requires a separate daemon to 3631eaf0ac3Slogwangmonitor transitions from an allowed period to a non-allowed one. 3641eaf0ac3Slogwang.Pp 3651eaf0ac3SlogwangThe 3661eaf0ac3Slogwang.Em ttys.allow 3671eaf0ac3Slogwangand 3681eaf0ac3Slogwang.Em ttys.deny 3691eaf0ac3Slogwangentries contain a comma-separated list of tty devices (without the /dev/ prefix) 3701eaf0ac3Slogwangthat a user in a class may use to access the system, and/or a list of ttygroups 3711eaf0ac3Slogwang(See 3721eaf0ac3Slogwang.Xr getttyent 3 3731eaf0ac3Slogwangand 3741eaf0ac3Slogwang.Xr ttys 5 3751eaf0ac3Slogwangfor information on ttygroups). 3761eaf0ac3SlogwangIf neither entry exists, then the choice of login device used by the user is 3771eaf0ac3Slogwangunrestricted. 3781eaf0ac3SlogwangIf only 3791eaf0ac3Slogwang.Em ttys.allow 3801eaf0ac3Slogwangis specified, then the user is restricted only to ttys in the given 3811eaf0ac3Slogwanggroup or device list. 3821eaf0ac3SlogwangIf only 3831eaf0ac3Slogwang.Em ttys.deny 3841eaf0ac3Slogwangis specified, then the user is prevented from using the specified devices or 3851eaf0ac3Slogwangdevices in the group. 3861eaf0ac3SlogwangIf both lists are given and are non-empty, the user is restricted to those 3871eaf0ac3Slogwangdevices allowed by ttys.allow that are not available by ttys.deny. 3881eaf0ac3Slogwang.Pp 3891eaf0ac3SlogwangThe 3901eaf0ac3Slogwang.Em minpasswordlen 3911eaf0ac3Slogwangand 3921eaf0ac3Slogwang.Em minpasswordcase 3931eaf0ac3Slogwangfacilities for enforcing restrictions on password quality, which used 3941eaf0ac3Slogwangto be supported by 3951eaf0ac3Slogwang.Nm , 3961eaf0ac3Slogwanghave been superseded by the 3971eaf0ac3Slogwang.Xr pam_passwdqc 8 3981eaf0ac3SlogwangPAM module. 3991eaf0ac3Slogwang.Sh RESERVED CAPABILITIES 4001eaf0ac3SlogwangThe following capabilities are reserved for the purposes indicated and 4011eaf0ac3Slogwangmay be supported by third-party software. 4021eaf0ac3SlogwangThey are not implemented in the base system. 4031eaf0ac3Slogwang.Bl -column host.accounted indent indent 4041eaf0ac3Slogwang.It Sy "Name Type Notes Description" 4051eaf0ac3Slogwang.It "accounted bool false Enable session time accounting for all users" 4061eaf0ac3Slogwangin this class. 4071eaf0ac3Slogwang.It "auth list passwd Allowed authentication styles." 4081eaf0ac3SlogwangThe first item is the default style. 4091eaf0ac3Slogwang.It "auth-" Ns Ar type Ta "list Allowed authentication styles for the" 4101eaf0ac3Slogwangauthentication 4111eaf0ac3Slogwang.Ar type . 4121eaf0ac3Slogwang.It "autodelete time Time after expiry when account is auto-deleted." 4131eaf0ac3Slogwang.It "bootfull bool false Enable 'boot only if ttygroup is full' strategy" 4141eaf0ac3Slogwangwhen terminating sessions. 4151eaf0ac3Slogwang.It "daytime time Maximum login time per day." 4161eaf0ac3Slogwang.It "expireperiod time Time for expiry allocation." 4171eaf0ac3Slogwang.It "graceexpire time Grace days for expired account." 4181eaf0ac3Slogwang.It "gracetime time Additional grace login time allowed." 4191eaf0ac3Slogwang.It "host.accounted list List of remote host wildcards from which" 4201eaf0ac3Slogwanglogin sessions will be accounted. 4211eaf0ac3Slogwang.It "host.exempt list List of remote host wildcards from which" 4221eaf0ac3Slogwanglogin session accounting is exempted. 4231eaf0ac3Slogwang.It "idletime time Maximum idle time before logout." 4241eaf0ac3Slogwang.It "minpasswordlen number 6 The minimum length a local" 4251eaf0ac3Slogwangpassword may be. 4261eaf0ac3Slogwang.It "mixpasswordcase bool true Whether" 4271eaf0ac3Slogwang.Xr passwd 1 4281eaf0ac3Slogwangwill warn the user if an all lower case password is entered. 4291eaf0ac3Slogwang.It "monthtime time Maximum login time per month." 4301eaf0ac3Slogwang.It "passwordtime time Used by" 4311eaf0ac3Slogwang.Xr passwd 1 4321eaf0ac3Slogwangto set next password expiry date. 4331eaf0ac3Slogwang.It "refreshtime time New time allowed on account refresh." 4341eaf0ac3Slogwang.It "refreshperiod str How often account time is refreshed." 4351eaf0ac3Slogwang.It "sessiontime time Maximum login time per session." 4361eaf0ac3Slogwang.It "sessionlimit number Maximum number of concurrent" 4371eaf0ac3Slogwanglogin sessions on ttys in any group. 4381eaf0ac3Slogwang.It "ttys.accounted list List of ttys and ttygroups for which" 4391eaf0ac3Slogwanglogin accounting is active. 4401eaf0ac3Slogwang.It "ttys.exempt list List of ttys and ttygroups for which login accounting" 4411eaf0ac3Slogwangis exempt. 4421eaf0ac3Slogwang.It "warntime time Advance notice for pending out-of-time." 4431eaf0ac3Slogwang.It "weektime time Maximum login time per week." 4441eaf0ac3Slogwang.El 4451eaf0ac3Slogwang.Pp 4461eaf0ac3SlogwangThe 4471eaf0ac3Slogwang.Em ttys.accounted 4481eaf0ac3Slogwangand 4491eaf0ac3Slogwang.Em ttys.exempt 4501eaf0ac3Slogwangfields operate in a similar manner to 4511eaf0ac3Slogwang.Em ttys.allow 4521eaf0ac3Slogwangand 4531eaf0ac3Slogwang.Em ttys.deny 4541eaf0ac3Slogwangas explained 4551eaf0ac3Slogwangabove. 4561eaf0ac3SlogwangSimilarly with the 4571eaf0ac3Slogwang.Em host.accounted 4581eaf0ac3Slogwangand 4591eaf0ac3Slogwang.Em host.exempt 4601eaf0ac3Slogwanglists. 4611eaf0ac3Slogwang.Sh SEE ALSO 4621eaf0ac3Slogwang.Xr cap_mkdb 1 , 4631eaf0ac3Slogwang.Xr login 1 , 4641eaf0ac3Slogwang.Xr chroot 2 , 4651eaf0ac3Slogwang.Xr getcap 3 , 4661eaf0ac3Slogwang.Xr getttyent 3 , 4671eaf0ac3Slogwang.Xr login_cap 3 , 4681eaf0ac3Slogwang.Xr login_class 3 , 4691eaf0ac3Slogwang.Xr pam 3 , 4701eaf0ac3Slogwang.Xr passwd 5 , 4711eaf0ac3Slogwang.Xr ttys 5 , 4721eaf0ac3Slogwang.Xr ftpd 8 , 4731eaf0ac3Slogwang.Xr pam_passwdqc 8 474*22ce4affSfengbojiang.Sh HISTORY 475*22ce4affSfengbojiangThe file 476*22ce4affSfengbojiang.Nm 477*22ce4affSfengbojiangfirst appeared in 478*22ce4affSfengbojiang.Fx 2.1.5 . 479