OxideBSD
LOGIN.CONF(5) File Formats Manual LOGIN.CONF(5)

login.conf — login class capability database

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’.

Each limit sets both the soft and hard limit; name-cur and name-max set one of them.

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

=name
MM_CHARSET.
Do not print the message of the day.
=locale
LANG.
=file
Refuse logins other than the superuser's while file exists, showing its contents.
=directories
PATH, as a space-separated list.
=number
The scheduling priority, as for nice(1).
Refuse the login if the home directory is missing.
=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.
=program
Run program instead of the account's shell.
=zone
TZ.
=mask
The file creation mask, in octal.
=file
The message of the day; default /etc/motd.

These are read from the “default” class only.

=number
Failed attempts after which login(1) starts delaying; default 3.
=number
Failed attempts after which it gives up; default 10.
=seconds
How long a login may take; default 300.

/etc/login.conf
 

login(1), getrlimit(2), getcap(3), passwd(5)

The login.conf file appeared in BSD/OS 2.1. login-timeout is OxideBSD's.

September 26, 2026 OxideBSD