login.conf revision 29731
12311Sjkh# Sample login.conf - login class capabilities database.
22311Sjkh# To speed up access to this data, you can use /usr/bin/cap_mkdb
32311Sjkh# to create a database form of this file:
42311Sjkh#
52311Sjkh#	cap_mkdb /etc/login.conf
62311Sjkh#
72311Sjkh# Don't forget to do this after each edit as well!
82311Sjkh#
92311Sjkh# This file controls resource limits, accounting limits and
102311Sjkh# default user environment settings.
112311Sjkh#
122311Sjkh#	$Id: login.conf,v 1.13 1997/07/11 22:11:13 guido Exp $
132311Sjkh#
142311Sjkh
152311Sjkh
165176Sache# Authentication methods
172311Sjkh
182311Sjkhauth-defaults:\
192311Sjkh	:auth=krb_skey_or_passwd,passwd,kerberos,skey:
2029452Scharnier
2150479Speterauth-root-defaults:\
222311Sjkh	:auth-login=krb_skey_or_passwd,passwd,kerberos,skey:\
232311Sjkh	:auth-rlogin=krb_or_skey,kerberos,skey:\
242311Sjkh
252311Sjkhauth-ftp-defaults:\
262311Sjkh	:auth=skey_or_pwd,passwd,skey:
272311Sjkh
282311Sjkh
292311Sjkh# Example defaults
302311Sjkh# These settings are used by login(1) by default for classless users
312311Sjkh# Note that entries like "cputime" set both "cputime-cur" and "cputime-max"
322311Sjkh
332311Sjkhdefault:\
3469793Sobrien	:cputime=infinity:\
352311Sjkh	:datasize-cur=16M:\
362311Sjkh	:stacksize-cur=8M:\
372311Sjkh	:memorylocked-cur=10M:\
382311Sjkh	:memoryuse-cur=30M:\
392311Sjkh	:filesize=infinity:\
402311Sjkh	:coredumpsize=infinity:\
412311Sjkh	:maxproc-cur=64:\
422311Sjkh	:openfiles-cur=64:\
432311Sjkh	:priority=0:\
442311Sjkh	:requirehome@:\
452311Sjkh	:umask=022:\
462311Sjkh	:tc=auth-defaults:
472311Sjkh
482311Sjkh
492311Sjkh#
502311Sjkh# standard - standard user defaults
512311Sjkh#
522311Sjkhstandard:\
532311Sjkh	:copyright=/etc/COPYRIGHT:\
542311Sjkh	:welcome=/etc/motd:\
552311Sjkh	:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,EDITOR=/usr/bin/ee:\
562311Sjkh	:path=~/bin /bin /usr/bin /usr/local/bin:\
572311Sjkh	:manpath=/usr/share/man /usr/local/man:\
582311Sjkh	:nologin=/etc/nologin:\
592311Sjkh	:cputime=1h30m:\
602311Sjkh	:datasize=8M:\
612311Sjkh	:stacksize=2M:\
622311Sjkh	:memorylocked=4M:\
632311Sjkh	:memoryuse=8M:\
642311Sjkh	:filesize=8M:\
652311Sjkh	:coredumpsize=8M:\
662311Sjkh	:openfiles=24:\
672311Sjkh	:maxproc=32:\
682311Sjkh	:priority=0:\
692311Sjkh	:requirehome:\
702311Sjkh	:passwordperiod=90d:\
712311Sjkh	:umask=002:\
722311Sjkh	:ignoretime@:\
732311Sjkh	:tc=default:
742311Sjkh
752311Sjkh
762311Sjkh#
772311Sjkh# users of X (needs more resources!)
7829452Scharnier#
7929452Scharnierxuser:\
8029452Scharnier	:manpath=/usr/share/man /usr/X11R6/man /usr/local/man:\
8129452Scharnier	:cputime=4h:\
822311Sjkh	:datasize=12M:\
832311Sjkh	:stacksize=4M:\
842311Sjkh	:filesize=8M:\
852311Sjkh	:memoryuse=16M:\
862311Sjkh	:openfiles=32:\
872311Sjkh	:maxproc=48:\
882311Sjkh	:tc=standard:
892311Sjkh
902311Sjkh
912311Sjkh#
922311Sjkh# Staff users - few restrictions and allow login anytime
932311Sjkh#
942311Sjkhstaff:\
952311Sjkh	:ignorenologin:\
962311Sjkh	:ignoretime:\
972311Sjkh	:requirehome@:\
982311Sjkh	:accounted@:\
992311Sjkh	:path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\
1002311Sjkh	:umask=022:\
1012311Sjkh	:tc=standard:
1022311Sjkh
1032311Sjkh
1042311Sjkh#
1052311Sjkh# root - fallback for root logins
1062311Sjkh#
10729452Scharnierroot:\
1082311Sjkh	:path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\
1092311Sjkh	:cputime=infinity:\
1102311Sjkh	:datasize=infinity:\
1112311Sjkh	:stacksize=infinity:\
1122311Sjkh	:memorylocked=infinity:\
1132311Sjkh	:memoryuse=infinity:\
1142311Sjkh	:filesize=infinity:\
1152311Sjkh	:coredumpsize=infinity:\
1162311Sjkh	:openfiles=infinity:\
1172311Sjkh	:maxproc=infinity:\
1182311Sjkh	:memoryuse-cur=32M:\
1192311Sjkh	:maxproc-cur=64:\
1202311Sjkh	:openfiles-cur=1024:\
1212311Sjkh	:priority=0:\
12229452Scharnier	:requirehome@:\
12329452Scharnier	:umask=022:\
1242311Sjkh	:tc=auth-root-defaults:\
125104326Sdd
1262311Sjkh
1272311Sjkh#
1282311Sjkh# Settings used by /etc/rc
1298857Srgrimes#
1302311Sjkhdaemon:\
1312311Sjkh	:coredumpsize=0:\
1322311Sjkh	:datasize=infinity:\
1332311Sjkh	:datasize-cur@:\
1342311Sjkh	:maxproc=256:\
1352311Sjkh	:maxproc-cur@:\
1362311Sjkh	:memoryuse-cur=64M:\
13729452Scharnier	:memorylocked-cur=64M:\
13829452Scharnier	:openfiles=1024:\
13920573Spst	:openfiles-cur@:\
14020573Spst	:stacksize=16M:\
1412311Sjkh	:stacksize-cur@:\
1422311Sjkh	:tc=default:
1432311Sjkh
14424428Simp
1452311Sjkh#
1462311Sjkh# Settings used by news subsystem
1472311Sjkh#
1482311Sjkhnews:\
1492311Sjkh	:path=/usr/local/news/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\
1502311Sjkh	:cputime=infinity:\
1512311Sjkh	:filesize=128M:\
15229452Scharnier	:datasize-curr=64M:\
1532311Sjkh	:stacksize-cur=32M:\
15429452Scharnier	:coredumpsize-cur=0:\
15520573Spst	:maxmemorysize-cur=128M:\
15620573Spst	:memorylocked=32M:\
1572311Sjkh	:maxproc=128:\
1582311Sjkh	:openfiles=256:\
1592311Sjkh	:tc=default:
1602311Sjkh
1612311Sjkh
1622311Sjkh#
1632311Sjkh# The dialer class should be used for a dialup PPP/SLIP accounts
1642311Sjkh# Welcome messages/news suppressed
1652311Sjkh#
1662311Sjkhdialer:\
1672311Sjkh	:hushlogin:\
1682311Sjkh	:requirehome@:\
1692311Sjkh	:cputime=unlimited:\
1702311Sjkh	:filesize=2M:\
1712311Sjkh	:datasize=2M:\
1722311Sjkh	:stacksize=4M:\
1732311Sjkh	:coredumpsize=0:\
1742311Sjkh	:memoryuse=4M:\
1752311Sjkh	:memorylocked=1M:\
1762311Sjkh	:maxproc=16:\
1772311Sjkh	:openfiles=32:\
1782311Sjkh	:tc=standard:
1792311Sjkh
1802311Sjkh
1812311Sjkh#
1822311Sjkh# Site full-time 24/7 PPP/SLIP connections
1832311Sjkh# - no time accounting, restricted to access via dialin lines
1842311Sjkh#
1852311Sjkhsite:\
1862311Sjkh	:ignoretime:\
18720573Spst	:passwordperiod@:\
18820573Spst	:refreshtime@:\
18920573Spst	:refreshperiod@:\
1902311Sjkh	:sessionlimit@:\
1912311Sjkh	:autodelete@:\
1922311Sjkh	:expireperiod@:\
1932311Sjkh	:graceexpire@:\
1942311Sjkh	:gracetime@:\
1952311Sjkh	:warnexpire@:\
1962311Sjkh	:warnpassword@:\
1972311Sjkh	:idletime@:\
1982311Sjkh	:sessiontime@:\
1992311Sjkh	:daytime@:\
2002311Sjkh	:weektime@:\
2012311Sjkh	:monthtime@:\
2022311Sjkh	:warntime@:\
2032311Sjkh	:accounted@:\
2042311Sjkh	:tc=dialer:\
2052311Sjkh	:tc=staff:
2062311Sjkh
2072311Sjkh
2082311Sjkh#
2092311Sjkh# Example standard accounting entries for subscriber levels
2102311Sjkh#
21129452Scharnier
21229452Scharniersubscriber|Subscribers:\
21329452Scharnier	:accounted:\
21429452Scharnier	:refreshtime=180d:\
21529452Scharnier	:refreshperiod@:\
21629452Scharnier	:sessionlimit@:\
2172311Sjkh	:autodelete=30d:\
2182311Sjkh	:expireperiod=180d:\
2192311Sjkh	:graceexpire=7d:\
2202311Sjkh	:gracetime=10m:\
2212311Sjkh	:warnexpire=7d:\
2222311Sjkh	:warnpassword=7d:\
2232311Sjkh	:idletime=30m:\
2242311Sjkh	:sessiontime=4h:\
2252311Sjkh	:daytime=6h:\
2262311Sjkh	:weektime=40h:\
2272311Sjkh	:monthtime=120h:\
2282311Sjkh	:warntime=4h:\
22975456Speter	:tc=standard:
2302311Sjkh
2312311Sjkh
2322311Sjkh#
2332311Sjkh# Subscriber accounts. These accounts have their login times
2342311Sjkh# accounted and have access limits applied.
23529452Scharnier#
2362311Sjkhsubppp|PPP Subscriber Accounts:\
23729452Scharnier	:tc=dialer:\
2382311Sjkh	:tc=subscriber:
2392311Sjkh
2402311Sjkh
2412311Sjkhsubslip|SLIP Subscriber Accounts:\
2422311Sjkh	:tc=dialer:\
24375456Speter	:tc=subscriber:
24475456Speter
24575456Speter
24675456Spetersubshell:Shell Subscriber Accounts:\
24775456Speter	:tc=subscriber:
24875456Speter
24975456Speter
25075456Speter#
25178321Speter# Russian Users Accounts. Setup proper environment variables.
25275456Speter#
25375456Speterrussian:Russian Users Accounts:\
25475456Speter	:charset=KOI8-R:\
25575456Speter	:lang=ru_RU.KOI8-R:\
25675456Speter	:tc=default:
25775456Speter