login.conf revision 98853
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 98853 2002-06-26 04:04:37Z dillon $
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"
1921526Sdavidn
2021526Sdavidndefault:\
2169015Sobrien	:passwd_format=md5:\
2270189Srwatson	:copyright=/etc/COPYRIGHT:\
2321526Sdavidn	:welcome=/etc/motd:\
2487887Smikeh	:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
2558579Srwatson	:path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin ~/bin:\
2642515Sasami	:nologin=/var/run/nologin:\
2739375Smsmith	:cputime=unlimited:\
2839375Smsmith	:datasize=unlimited:\
2939375Smsmith	:stacksize=unlimited:\
3039375Smsmith	:memorylocked=unlimited:\
3139375Smsmith	:memoryuse=unlimited:\
3239375Smsmith	:filesize=unlimited:\
3339375Smsmith	:coredumpsize=unlimited:\
3439375Smsmith	:openfiles=unlimited:\
3539375Smsmith	:maxproc=unlimited:\
3661184Salfred	:sbsize=unlimited:\
3798853Sdillon	:vmemoryuse=unlimited:\
3821538Sdavidn	:priority=0:\
3921526Sdavidn	:ignoretime@:\
4039375Smsmith	:umask=022:
4121526Sdavidn
4221943Sdavidn
4321538Sdavidn#
4439375Smsmith# A collection of common class names - forward them all to 'default'
4539375Smsmith# (login would normally do this anyway, but having a class name
4639375Smsmith#  here suppresses the diagnostic)
4721538Sdavidn#
4839375Smsmithstandard:\
4939375Smsmith	:tc=default:
5021538Sdavidnxuser:\
5139375Smsmith	:tc=default:
5221526Sdavidnstaff:\
5339375Smsmith	:tc=default:
5439375Smsmithdaemon:\
5539424Sdt	:tc=default:
5639375Smsmithnews:\
5739375Smsmith	:tc=default:
5839375Smsmithdialer:\
5939375Smsmith	:tc=default:
6021526Sdavidn
6121526Sdavidn#
6239375Smsmith# Root can always login
6321526Sdavidn#
6448814Snik# N.B.  login_getpwclass(3) will use this entry for the root account,
6548814Snik#       in preference to 'default'.
6621526Sdavidnroot:\
6739375Smsmith	:ignorenologin:\
6839375Smsmith	:tc=default:
6921526Sdavidn
7021526Sdavidn#
7139375Smsmith# Russian Users Accounts. Setup proper environment variables.
7221526Sdavidn#
7391527Srwatsonrussian|Russian Users Accounts:\
7439375Smsmith	:charset=KOI8-R:\
7539375Smsmith	:lang=ru_RU.KOI8-R:\
7621526Sdavidn	:tc=default:
7721526Sdavidn
7821526Sdavidn
7939375Smsmith######################################################################
8039375Smsmith######################################################################
8139375Smsmith##
8239375Smsmith## Example entries
8339375Smsmith## 
8439375Smsmith######################################################################
8539375Smsmith######################################################################
8639375Smsmith
8739375Smsmith## Example defaults
8839375Smsmith## These settings are used by login(1) by default for classless users
8939375Smsmith## Note that entries like "cputime" set both "cputime-cur" and "cputime-max"
9021526Sdavidn#
9139375Smsmith#default:\
9239375Smsmith#	:cputime=infinity:\
9339375Smsmith#	:datasize-cur=22M:\
9439375Smsmith#	:stacksize-cur=8M:\
9539375Smsmith#	:memorylocked-cur=10M:\
9639375Smsmith#	:memoryuse-cur=30M:\
9739375Smsmith#	:filesize=infinity:\
9839375Smsmith#	:coredumpsize=infinity:\
9939375Smsmith#	:maxproc-cur=64:\
10039375Smsmith#	:openfiles-cur=64:\
10139375Smsmith#	:priority=0:\
10239375Smsmith#	:requirehome@:\
10339375Smsmith#	:umask=022:\
10439375Smsmith#	:tc=auth-defaults:
10521526Sdavidn#
10621526Sdavidn#
10739375Smsmith##
10839375Smsmith## standard - standard user defaults
10939375Smsmith##
11039375Smsmith#standard:\
11170189Srwatson#	:copyright=/etc/COPYRIGHT:\
11239375Smsmith#	:welcome=/etc/motd:\
11343220Sdg#	:setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\
11439375Smsmith#	:path=~/bin /bin /usr/bin /usr/local/bin:\
11539375Smsmith#	:manpath=/usr/share/man /usr/local/man:\
11642587Sasami#	:nologin=/var/run/nologin:\
11739375Smsmith#	:cputime=1h30m:\
11839375Smsmith#	:datasize=8M:\
11998853Sdillon#	:vmemoryuse=100M:\
12039375Smsmith#	:stacksize=2M:\
12139375Smsmith#	:memorylocked=4M:\
12239375Smsmith#	:memoryuse=8M:\
12339375Smsmith#	:filesize=8M:\
12439375Smsmith#	:coredumpsize=8M:\
12539375Smsmith#	:openfiles=24:\
12639375Smsmith#	:maxproc=32:\
12739375Smsmith#	:priority=0:\
12839375Smsmith#	:requirehome:\
12946209Shoek#	:passwordtime=90d:\
13039375Smsmith#	:umask=002:\
13139375Smsmith#	:ignoretime@:\
13239375Smsmith#	:tc=default:
13321526Sdavidn#
13421526Sdavidn#
13539375Smsmith##
13639375Smsmith## users of X (needs more resources!)
13739375Smsmith##
13839375Smsmith#xuser:\
13939375Smsmith#	:manpath=/usr/share/man /usr/X11R6/man /usr/local/man:\
14039375Smsmith#	:cputime=4h:\
14139375Smsmith#	:datasize=12M:\
14298853Sdillon#	:vmemoryuse=infinity:\
14339375Smsmith#	:stacksize=4M:\
14439375Smsmith#	:filesize=8M:\
14539375Smsmith#	:memoryuse=16M:\
14639375Smsmith#	:openfiles=32:\
14739375Smsmith#	:maxproc=48:\
14839375Smsmith#	:tc=standard:
14925369Sache#
15025369Sache#
15139375Smsmith##
15239375Smsmith## Staff users - few restrictions and allow login anytime
15339375Smsmith##
15439375Smsmith#staff:\
15539375Smsmith#	:ignorenologin:\
15639375Smsmith#	:ignoretime:\
15739375Smsmith#	:requirehome@:\
15839375Smsmith#	:accounted@:\
15939375Smsmith#	:path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\
16039375Smsmith#	:umask=022:\
16139375Smsmith#	:tc=standard:
16239375Smsmith#
16339375Smsmith#
16439375Smsmith##
16539375Smsmith## root - fallback for root logins
16639375Smsmith##
16739375Smsmith#root:\
16839375Smsmith#	:path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\
16939375Smsmith#	:cputime=infinity:\
17039375Smsmith#	:datasize=infinity:\
17139375Smsmith#	:stacksize=infinity:\
17239375Smsmith#	:memorylocked=infinity:\
17339375Smsmith#	:memoryuse=infinity:\
17439375Smsmith#	:filesize=infinity:\
17539375Smsmith#	:coredumpsize=infinity:\
17639375Smsmith#	:openfiles=infinity:\
17739375Smsmith#	:maxproc=infinity:\
17839375Smsmith#	:memoryuse-cur=32M:\
17939375Smsmith#	:maxproc-cur=64:\
18039375Smsmith#	:openfiles-cur=1024:\
18139375Smsmith#	:priority=0:\
18239375Smsmith#	:requirehome@:\
18339375Smsmith#	:umask=022:\
18439375Smsmith#	:tc=auth-root-defaults:
18539375Smsmith#
18639375Smsmith#
18739375Smsmith##
18839375Smsmith## Settings used by /etc/rc
18939375Smsmith##
19039375Smsmith#daemon:\
19139375Smsmith#	:coredumpsize@:\
19239375Smsmith#	:coredumpsize-cur=0:\
19339375Smsmith#	:datasize=infinity:\
19439375Smsmith#	:datasize-cur@:\
19539375Smsmith#	:maxproc=512:\
19639375Smsmith#	:maxproc-cur@:\
19739375Smsmith#	:memoryuse-cur=64M:\
19839375Smsmith#	:memorylocked-cur=64M:\
19939375Smsmith#	:openfiles=1024:\
20039375Smsmith#	:openfiles-cur@:\
20139375Smsmith#	:stacksize=16M:\
20239375Smsmith#	:stacksize-cur@:\
20339375Smsmith#	:tc=default:
20439375Smsmith#
20539375Smsmith#
20639375Smsmith##
20739375Smsmith## Settings used by news subsystem
20839375Smsmith##
20939375Smsmith#news:\
21039375Smsmith#	:path=/usr/local/news/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\
21139375Smsmith#	:cputime=infinity:\
21239375Smsmith#	:filesize=128M:\
21339375Smsmith#	:datasize-cur=64M:\
21439375Smsmith#	:stacksize-cur=32M:\
21539375Smsmith#	:coredumpsize-cur=0:\
21639375Smsmith#	:maxmemorysize-cur=128M:\
21739375Smsmith#	:memorylocked=32M:\
21839375Smsmith#	:maxproc=128:\
21939375Smsmith#	:openfiles=256:\
22039375Smsmith#	:tc=default:
22139375Smsmith#
22239375Smsmith#
22339375Smsmith##
22439375Smsmith## The dialer class should be used for a dialup PPP/SLIP accounts
22539375Smsmith## Welcome messages/news suppressed
22639375Smsmith##
22739375Smsmith#dialer:\
22839375Smsmith#	:hushlogin:\
22939375Smsmith#	:requirehome@:\
23039375Smsmith#	:cputime=unlimited:\
23139375Smsmith#	:filesize=2M:\
23239375Smsmith#	:datasize=2M:\
23339375Smsmith#	:stacksize=4M:\
23439375Smsmith#	:coredumpsize=0:\
23539375Smsmith#	:memoryuse=4M:\
23639375Smsmith#	:memorylocked=1M:\
23739375Smsmith#	:maxproc=16:\
23839375Smsmith#	:openfiles=32:\
23939375Smsmith#	:tc=standard:
24039375Smsmith#
24139375Smsmith#
24239375Smsmith##
24339375Smsmith## Site full-time 24/7 PPP/SLIP connections
24439375Smsmith## - no time accounting, restricted to access via dialin lines
24539375Smsmith##
24639375Smsmith#site:\
24739375Smsmith#	:ignoretime:\
24846209Shoek#	:passwordtime@:\
24939375Smsmith#	:refreshtime@:\
25039375Smsmith#	:refreshperiod@:\
25139375Smsmith#	:sessionlimit@:\
25239375Smsmith#	:autodelete@:\
25339375Smsmith#	:expireperiod@:\
25439375Smsmith#	:graceexpire@:\
25539375Smsmith#	:gracetime@:\
25639375Smsmith#	:warnexpire@:\
25739375Smsmith#	:warnpassword@:\
25839375Smsmith#	:idletime@:\
25939375Smsmith#	:sessiontime@:\
26039375Smsmith#	:daytime@:\
26139375Smsmith#	:weektime@:\
26239375Smsmith#	:monthtime@:\
26339375Smsmith#	:warntime@:\
26439375Smsmith#	:accounted@:\
26539375Smsmith#	:tc=dialer:\
26639375Smsmith#	:tc=staff:
26739375Smsmith#
26839375Smsmith#
26939375Smsmith##
27039375Smsmith## Example standard accounting entries for subscriber levels
27139375Smsmith##
27239375Smsmith#
27339375Smsmith#subscriber|Subscribers:\
27439375Smsmith#	:accounted:\
27539375Smsmith#	:refreshtime=180d:\
27639375Smsmith#	:refreshperiod@:\
27739375Smsmith#	:sessionlimit@:\
27839375Smsmith#	:autodelete=30d:\
27939375Smsmith#	:expireperiod=180d:\
28039375Smsmith#	:graceexpire=7d:\
28139375Smsmith#	:gracetime=10m:\
28239375Smsmith#	:warnexpire=7d:\
28339375Smsmith#	:warnpassword=7d:\
28439375Smsmith#	:idletime=30m:\
28539375Smsmith#	:sessiontime=4h:\
28639375Smsmith#	:daytime=6h:\
28739375Smsmith#	:weektime=40h:\
28839375Smsmith#	:monthtime=120h:\
28939375Smsmith#	:warntime=4h:\
29039375Smsmith#	:tc=standard:
29139375Smsmith#
29239375Smsmith#
29339375Smsmith##
29439375Smsmith## Subscriber accounts. These accounts have their login times
29539375Smsmith## accounted and have access limits applied.
29639375Smsmith##
29739375Smsmith#subppp|PPP Subscriber Accounts:\
29839375Smsmith#	:tc=dialer:\
29939375Smsmith#	:tc=subscriber:
30039375Smsmith#
30139375Smsmith#
30239375Smsmith#subslip|SLIP Subscriber Accounts:\
30339375Smsmith#	:tc=dialer:\
30439375Smsmith#	:tc=subscriber:
30539375Smsmith#
30639375Smsmith#
30791528Srwatson#subshell|Shell Subscriber Accounts:\
30839375Smsmith#	:tc=subscriber:
30939375Smsmith#
31069015Sobrien##
31169015Sobrien## If you want some of the accounts to use traditional UNIX DES based
31269015Sobrien## password hashes.
31369015Sobrien##
31469015Sobrien#des_users:\
31583325Sru#	:passwd_format=des:\
31669015Sobrien#	:tc=default:
317