login.conf revision 209331
158579Srwatson# login.conf - login class capabilities database.
221526Sdavidn#
358579Srwatson# Remember to rebuild the database after each change to this file:
458579Srwatson#
521526Sdavidn#	cap_mkdb /etc/login.conf
621526Sdavidn#
721526Sdavidn# This file controls resource limits, accounting limits and
821526Sdavidn# default user environment settings.
921526Sdavidn#
1050472Speter# $FreeBSD: head/etc/login.conf 209331 2010-06-19 09:21:34Z brian $
1121526Sdavidn#
1221526Sdavidn
1339375Smsmith# Default settings effectively disable resource limits, see the
1439375Smsmith# examples below for a starting point to enable them.
1521526Sdavidn
1642149Shoek# defaults
1721526Sdavidn# These settings are used by login(1) by default for classless users
1821526Sdavidn# Note that entries like "cputime" set both "cputime-cur" and "cputime-max"
19149672Skeramida#
20149672Skeramida# Note that since a colon ':' is used to separate capability entries,
21149672Skeramida# a \c escape sequence must be used to embed a literal colon in the
22149672Skeramida# value or name of a capability (see the ``CGETNUM AND CGETSTR SYNTAX
23149672Skeramida# AND SEMANTICS'' section of getcap(3) for more escape sequences).
2421526Sdavidn
2521526Sdavidndefault:\
2669015Sobrien	:passwd_format=md5:\
2770189Srwatson	:copyright=/etc/COPYRIGHT:\
2821526Sdavidn	:welcome=/etc/motd:\
2987887Smikeh	:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
30170088Sdougb	:path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin ~/bin:\
3142515Sasami	:nologin=/var/run/nologin:\
3239375Smsmith	:cputime=unlimited:\
3339375Smsmith	:datasize=unlimited:\
3439375Smsmith	:stacksize=unlimited:\
3539375Smsmith	:memorylocked=unlimited:\
3639375Smsmith	:memoryuse=unlimited:\
3739375Smsmith	:filesize=unlimited:\
3839375Smsmith	:coredumpsize=unlimited:\
3939375Smsmith	:openfiles=unlimited:\
4039375Smsmith	:maxproc=unlimited:\
4161184Salfred	:sbsize=unlimited:\
4298853Sdillon	:vmemoryuse=unlimited:\
43194767Skib	:swapuse=unlimited:\
44181905Sed	:pseudoterminals=unlimited:\
4521538Sdavidn	:priority=0:\
4621526Sdavidn	:ignoretime@:\
4739375Smsmith	:umask=022:
4821526Sdavidn
4921943Sdavidn
5021538Sdavidn#
5139375Smsmith# A collection of common class names - forward them all to 'default'
5239375Smsmith# (login would normally do this anyway, but having a class name
5339375Smsmith#  here suppresses the diagnostic)
5421538Sdavidn#
5539375Smsmithstandard:\
5639375Smsmith	:tc=default:
5721538Sdavidnxuser:\
5839375Smsmith	:tc=default:
5921526Sdavidnstaff:\
6039375Smsmith	:tc=default:
6139375Smsmithdaemon:\
6239424Sdt	:tc=default:
6339375Smsmithnews:\
6439375Smsmith	:tc=default:
6539375Smsmithdialer:\
6639375Smsmith	:tc=default:
6721526Sdavidn
6821526Sdavidn#
6939375Smsmith# Root can always login
7021526Sdavidn#
7148814Snik# N.B.  login_getpwclass(3) will use this entry for the root account,
7248814Snik#       in preference to 'default'.
7321526Sdavidnroot:\
7439375Smsmith	:ignorenologin:\
7539375Smsmith	:tc=default:
7621526Sdavidn
7721526Sdavidn#
7839375Smsmith# Russian Users Accounts. Setup proper environment variables.
7921526Sdavidn#
8091527Srwatsonrussian|Russian Users Accounts:\
8139375Smsmith	:charset=KOI8-R:\
8239375Smsmith	:lang=ru_RU.KOI8-R:\
8321526Sdavidn	:tc=default:
8421526Sdavidn
8521526Sdavidn
8639375Smsmith######################################################################
8739375Smsmith######################################################################
8839375Smsmith##
8939375Smsmith## Example entries
90130151Sschweikh##
9139375Smsmith######################################################################
9239375Smsmith######################################################################
9339375Smsmith
9439375Smsmith## Example defaults
9539375Smsmith## These settings are used by login(1) by default for classless users
9639375Smsmith## Note that entries like "cputime" set both "cputime-cur" and "cputime-max"
9721526Sdavidn#
9839375Smsmith#default:\
9939375Smsmith#	:cputime=infinity:\
10039375Smsmith#	:datasize-cur=22M:\
10139375Smsmith#	:stacksize-cur=8M:\
10239375Smsmith#	:memorylocked-cur=10M:\
10339375Smsmith#	:memoryuse-cur=30M:\
10439375Smsmith#	:filesize=infinity:\
10539375Smsmith#	:coredumpsize=infinity:\
10639375Smsmith#	:maxproc-cur=64:\
10739375Smsmith#	:openfiles-cur=64:\
10839375Smsmith#	:priority=0:\
10939375Smsmith#	:requirehome@:\
11039375Smsmith#	:umask=022:\
11139375Smsmith#	:tc=auth-defaults:
11221526Sdavidn#
11321526Sdavidn#
11439375Smsmith##
11539375Smsmith## standard - standard user defaults
11639375Smsmith##
11739375Smsmith#standard:\
11870189Srwatson#	:copyright=/etc/COPYRIGHT:\
11939375Smsmith#	:welcome=/etc/motd:\
12043220Sdg#	:setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\
12139375Smsmith#	:path=~/bin /bin /usr/bin /usr/local/bin:\
12239375Smsmith#	:manpath=/usr/share/man /usr/local/man:\
12342587Sasami#	:nologin=/var/run/nologin:\
12439375Smsmith#	:cputime=1h30m:\
12539375Smsmith#	:datasize=8M:\
12698853Sdillon#	:vmemoryuse=100M:\
12739375Smsmith#	:stacksize=2M:\
12839375Smsmith#	:memorylocked=4M:\
12939375Smsmith#	:memoryuse=8M:\
13039375Smsmith#	:filesize=8M:\
13139375Smsmith#	:coredumpsize=8M:\
13239375Smsmith#	:openfiles=24:\
13339375Smsmith#	:maxproc=32:\
13439375Smsmith#	:priority=0:\
13539375Smsmith#	:requirehome:\
13646209Shoek#	:passwordtime=90d:\
13739375Smsmith#	:umask=002:\
13839375Smsmith#	:ignoretime@:\
13939375Smsmith#	:tc=default:
14021526Sdavidn#
14121526Sdavidn#
14239375Smsmith##
14339375Smsmith## users of X (needs more resources!)
14439375Smsmith##
14539375Smsmith#xuser:\
146170088Sdougb#	:manpath=/usr/share/man /usr/local/man:\
14739375Smsmith#	:cputime=4h:\
14839375Smsmith#	:datasize=12M:\
14998853Sdillon#	:vmemoryuse=infinity:\
15039375Smsmith#	:stacksize=4M:\
15139375Smsmith#	:filesize=8M:\
15239375Smsmith#	:memoryuse=16M:\
15339375Smsmith#	:openfiles=32:\
15439375Smsmith#	:maxproc=48:\
15539375Smsmith#	:tc=standard:
15625369Sache#
15725369Sache#
15839375Smsmith##
15939375Smsmith## Staff users - few restrictions and allow login anytime
16039375Smsmith##
16139375Smsmith#staff:\
16239375Smsmith#	:ignorenologin:\
16339375Smsmith#	:ignoretime:\
16439375Smsmith#	:requirehome@:\
16539375Smsmith#	:accounted@:\
16639375Smsmith#	:path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\
16739375Smsmith#	:umask=022:\
16839375Smsmith#	:tc=standard:
16939375Smsmith#
17039375Smsmith#
17139375Smsmith##
17239375Smsmith## root - fallback for root logins
17339375Smsmith##
17439375Smsmith#root:\
17539375Smsmith#	:path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\
17639375Smsmith#	:cputime=infinity:\
17739375Smsmith#	:datasize=infinity:\
17839375Smsmith#	:stacksize=infinity:\
17939375Smsmith#	:memorylocked=infinity:\
18039375Smsmith#	:memoryuse=infinity:\
18139375Smsmith#	:filesize=infinity:\
18239375Smsmith#	:coredumpsize=infinity:\
18339375Smsmith#	:openfiles=infinity:\
18439375Smsmith#	:maxproc=infinity:\
18539375Smsmith#	:memoryuse-cur=32M:\
18639375Smsmith#	:maxproc-cur=64:\
18739375Smsmith#	:openfiles-cur=1024:\
18839375Smsmith#	:priority=0:\
18939375Smsmith#	:requirehome@:\
19039375Smsmith#	:umask=022:\
19139375Smsmith#	:tc=auth-root-defaults:
19239375Smsmith#
19339375Smsmith#
19439375Smsmith##
19539375Smsmith## Settings used by /etc/rc
19639375Smsmith##
19739375Smsmith#daemon:\
19839375Smsmith#	:coredumpsize@:\
19939375Smsmith#	:coredumpsize-cur=0:\
20039375Smsmith#	:datasize=infinity:\
20139375Smsmith#	:datasize-cur@:\
20239375Smsmith#	:maxproc=512:\
20339375Smsmith#	:maxproc-cur@:\
20439375Smsmith#	:memoryuse-cur=64M:\
20539375Smsmith#	:memorylocked-cur=64M:\
20639375Smsmith#	:openfiles=1024:\
20739375Smsmith#	:openfiles-cur@:\
20839375Smsmith#	:stacksize=16M:\
20939375Smsmith#	:stacksize-cur@:\
21039375Smsmith#	:tc=default:
21139375Smsmith#
21239375Smsmith#
21339375Smsmith##
21439375Smsmith## Settings used by news subsystem
21539375Smsmith##
21639375Smsmith#news:\
21739375Smsmith#	:path=/usr/local/news/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\
21839375Smsmith#	:cputime=infinity:\
21939375Smsmith#	:filesize=128M:\
22039375Smsmith#	:datasize-cur=64M:\
22139375Smsmith#	:stacksize-cur=32M:\
22239375Smsmith#	:coredumpsize-cur=0:\
22339375Smsmith#	:maxmemorysize-cur=128M:\
22439375Smsmith#	:memorylocked=32M:\
22539375Smsmith#	:maxproc=128:\
22639375Smsmith#	:openfiles=256:\
22739375Smsmith#	:tc=default:
22839375Smsmith#
22939375Smsmith#
23039375Smsmith##
231209331Sbrian## The dialer class should be used for a dialup PPP account
23239375Smsmith## Welcome messages/news suppressed
23339375Smsmith##
23439375Smsmith#dialer:\
23539375Smsmith#	:hushlogin:\
23639375Smsmith#	:requirehome@:\
23739375Smsmith#	:cputime=unlimited:\
23839375Smsmith#	:filesize=2M:\
23939375Smsmith#	:datasize=2M:\
24039375Smsmith#	:stacksize=4M:\
24139375Smsmith#	:coredumpsize=0:\
24239375Smsmith#	:memoryuse=4M:\
24339375Smsmith#	:memorylocked=1M:\
24439375Smsmith#	:maxproc=16:\
24539375Smsmith#	:openfiles=32:\
24639375Smsmith#	:tc=standard:
24739375Smsmith#
24839375Smsmith#
24939375Smsmith##
250209331Sbrian## Site full-time 24/7 PPP connection
25139375Smsmith## - no time accounting, restricted to access via dialin lines
25239375Smsmith##
25339375Smsmith#site:\
25439375Smsmith#	:ignoretime:\
25546209Shoek#	:passwordtime@:\
25639375Smsmith#	:refreshtime@:\
25739375Smsmith#	:refreshperiod@:\
25839375Smsmith#	:sessionlimit@:\
25939375Smsmith#	:autodelete@:\
26039375Smsmith#	:expireperiod@:\
26139375Smsmith#	:graceexpire@:\
26239375Smsmith#	:gracetime@:\
26339375Smsmith#	:warnexpire@:\
26439375Smsmith#	:warnpassword@:\
26539375Smsmith#	:idletime@:\
26639375Smsmith#	:sessiontime@:\
26739375Smsmith#	:daytime@:\
26839375Smsmith#	:weektime@:\
26939375Smsmith#	:monthtime@:\
27039375Smsmith#	:warntime@:\
27139375Smsmith#	:accounted@:\
27239375Smsmith#	:tc=dialer:\
27339375Smsmith#	:tc=staff:
27439375Smsmith#
27539375Smsmith#
27639375Smsmith##
27739375Smsmith## Example standard accounting entries for subscriber levels
27839375Smsmith##
27939375Smsmith#
28039375Smsmith#subscriber|Subscribers:\
28139375Smsmith#	:accounted:\
28239375Smsmith#	:refreshtime=180d:\
28339375Smsmith#	:refreshperiod@:\
28439375Smsmith#	:sessionlimit@:\
28539375Smsmith#	:autodelete=30d:\
28639375Smsmith#	:expireperiod=180d:\
28739375Smsmith#	:graceexpire=7d:\
28839375Smsmith#	:gracetime=10m:\
28939375Smsmith#	:warnexpire=7d:\
29039375Smsmith#	:warnpassword=7d:\
29139375Smsmith#	:idletime=30m:\
29239375Smsmith#	:sessiontime=4h:\
29339375Smsmith#	:daytime=6h:\
29439375Smsmith#	:weektime=40h:\
29539375Smsmith#	:monthtime=120h:\
29639375Smsmith#	:warntime=4h:\
29739375Smsmith#	:tc=standard:
29839375Smsmith#
29939375Smsmith#
30039375Smsmith##
30139375Smsmith## Subscriber accounts. These accounts have their login times
30239375Smsmith## accounted and have access limits applied.
30339375Smsmith##
30439375Smsmith#subppp|PPP Subscriber Accounts:\
30539375Smsmith#	:tc=dialer:\
30639375Smsmith#	:tc=subscriber:
30739375Smsmith#
30839375Smsmith#
30991528Srwatson#subshell|Shell Subscriber Accounts:\
31039375Smsmith#	:tc=subscriber:
31139375Smsmith#
31269015Sobrien##
31369015Sobrien## If you want some of the accounts to use traditional UNIX DES based
31469015Sobrien## password hashes.
31569015Sobrien##
31669015Sobrien#des_users:\
31783325Sru#	:passwd_format=des:\
31869015Sobrien#	:tc=default:
319