| LOGIN.CONF(5) | File Formats Manual | LOGIN.CONF(5) |
NAME
login.conf — login
class capability database
DESCRIPTION
The file /etc/login.conf describes login classes: the resource limits, environment and other settings a session starts with. An account's class is the fifth field of /etc/master.passwd; see passwd(5). An empty class means “default”, except that the superuser's means “root”. A class with no record uses “default”.
Like gettytab(5), it is a
getcap(3) database, and
tc=class continues a record
with another class. Sizes take the suffixes b,
k, m,
g and t; times take
s, m,
h, d and
w, and may be combined, as in
‘1h30m’. Either may be
‘unlimited’.
Resource limits
Each limit sets both the soft and hard limit;
name-cur and
name-max set one of them.
| Name | Type | Limit |
| coredumpsize | size | RLIMIT_CORE |
| cputime | time | RLIMIT_CPU |
| datasize | size | RLIMIT_DATA |
| filesize | size | RLIMIT_FSIZE |
| maxproc | number | RLIMIT_NPROC |
| memorylocked | size | RLIMIT_MEMLOCK |
| memoryuse | size | RLIMIT_RSS |
| openfiles | number | RLIMIT_NOFILE |
| stacksize | size | RLIMIT_STACK |
Environment and session
charset=nameMM_CHARSET.hushlogin- Do not print the message of the day.
lang=localeLANG.nologin=file- Refuse logins other than the superuser's while file exists, showing its contents.
path=directoriesPATH, as a space-separated list.priority=number- The scheduling priority, as for nice(1).
requirehome- Refuse the login if the home directory is missing.
setenv=list- Further variables, as
name=value pairs separated by
commas; ‘
\,’ is a literal comma. In each value, ‘~’ stands for the home directory and ‘$’ for the user name. shell=program- Run program instead of the account's shell.
timezone=zoneTZ.umask=mask- The file creation mask, in octal.
welcome=file- The message of the day; default /etc/motd.
Authentication
These are read from the “default” class only.
login-backoff=number- Failed attempts after which login(1) starts delaying; default 3.
login-retries=number- Failed attempts after which it gives up; default 10.
login-timeout=seconds- How long a login may take; default 300.
FILES
- /etc/login.conf
SEE ALSO
HISTORY
The login.conf file appeared in
BSD/OS 2.1. login-timeout is
OxideBSD's.
| September 26, 2026 | OxideBSD |