login.conf revision 58579
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 58579 2000-03-26 05:41:10Z rwatson $ 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:\ 2121526Sdavidn :copyright=/etc/COPYRIGHT:\ 2221526Sdavidn :welcome=/etc/motd:\ 2347583Sjkh :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\ 2458579Srwatson :path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin ~/bin:\ 2542515Sasami :nologin=/var/run/nologin:\ 2639375Smsmith :cputime=unlimited:\ 2739375Smsmith :datasize=unlimited:\ 2839375Smsmith :stacksize=unlimited:\ 2939375Smsmith :memorylocked=unlimited:\ 3039375Smsmith :memoryuse=unlimited:\ 3139375Smsmith :filesize=unlimited:\ 3239375Smsmith :coredumpsize=unlimited:\ 3339375Smsmith :openfiles=unlimited:\ 3439375Smsmith :maxproc=unlimited:\ 3521538Sdavidn :priority=0:\ 3621526Sdavidn :ignoretime@:\ 3739375Smsmith :umask=022: 3821526Sdavidn 3921943Sdavidn 4021538Sdavidn# 4139375Smsmith# A collection of common class names - forward them all to 'default' 4239375Smsmith# (login would normally do this anyway, but having a class name 4339375Smsmith# here suppresses the diagnostic) 4421538Sdavidn# 4539375Smsmithstandard:\ 4639375Smsmith :tc=default: 4721538Sdavidnxuser:\ 4839375Smsmith :tc=default: 4921526Sdavidnstaff:\ 5039375Smsmith :tc=default: 5139375Smsmithdaemon:\ 5239424Sdt :tc=default: 5339375Smsmithnews:\ 5439375Smsmith :tc=default: 5539375Smsmithdialer:\ 5639375Smsmith :tc=default: 5721526Sdavidn 5821526Sdavidn# 5939375Smsmith# Root can always login 6021526Sdavidn# 6148814Snik# N.B. login_getpwclass(3) will use this entry for the root account, 6248814Snik# in preference to 'default'. 6321526Sdavidnroot:\ 6439375Smsmith :ignorenologin:\ 6539375Smsmith :tc=default: 6621526Sdavidn 6721526Sdavidn# 6839375Smsmith# Russian Users Accounts. Setup proper environment variables. 6921526Sdavidn# 7039375Smsmithrussian:Russian Users Accounts:\ 7139375Smsmith :charset=KOI8-R:\ 7239375Smsmith :lang=ru_RU.KOI8-R:\ 7321526Sdavidn :tc=default: 7421526Sdavidn 7521526Sdavidn 7639375Smsmith###################################################################### 7739375Smsmith###################################################################### 7839375Smsmith## 7939375Smsmith## Example entries 8039375Smsmith## 8139375Smsmith###################################################################### 8239375Smsmith###################################################################### 8339375Smsmith 8439375Smsmith## Example defaults 8539375Smsmith## These settings are used by login(1) by default for classless users 8639375Smsmith## Note that entries like "cputime" set both "cputime-cur" and "cputime-max" 8721526Sdavidn# 8839375Smsmith#default:\ 8939375Smsmith# :cputime=infinity:\ 9039375Smsmith# :datasize-cur=22M:\ 9139375Smsmith# :stacksize-cur=8M:\ 9239375Smsmith# :memorylocked-cur=10M:\ 9339375Smsmith# :memoryuse-cur=30M:\ 9439375Smsmith# :filesize=infinity:\ 9539375Smsmith# :coredumpsize=infinity:\ 9639375Smsmith# :maxproc-cur=64:\ 9739375Smsmith# :openfiles-cur=64:\ 9839375Smsmith# :priority=0:\ 9939375Smsmith# :requirehome@:\ 10039375Smsmith# :umask=022:\ 10139375Smsmith# :tc=auth-defaults: 10221526Sdavidn# 10321526Sdavidn# 10439375Smsmith## 10539375Smsmith## standard - standard user defaults 10639375Smsmith## 10739375Smsmith#standard:\ 10839375Smsmith# :copyright=/etc/COPYRIGHT:\ 10939375Smsmith# :welcome=/etc/motd:\ 11043220Sdg# :setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\ 11139375Smsmith# :path=~/bin /bin /usr/bin /usr/local/bin:\ 11239375Smsmith# :manpath=/usr/share/man /usr/local/man:\ 11342587Sasami# :nologin=/var/run/nologin:\ 11439375Smsmith# :cputime=1h30m:\ 11539375Smsmith# :datasize=8M:\ 11639375Smsmith# :stacksize=2M:\ 11739375Smsmith# :memorylocked=4M:\ 11839375Smsmith# :memoryuse=8M:\ 11939375Smsmith# :filesize=8M:\ 12039375Smsmith# :coredumpsize=8M:\ 12139375Smsmith# :openfiles=24:\ 12239375Smsmith# :maxproc=32:\ 12339375Smsmith# :priority=0:\ 12439375Smsmith# :requirehome:\ 12546209Shoek# :passwordtime=90d:\ 12639375Smsmith# :umask=002:\ 12739375Smsmith# :ignoretime@:\ 12839375Smsmith# :tc=default: 12921526Sdavidn# 13021526Sdavidn# 13139375Smsmith## 13239375Smsmith## users of X (needs more resources!) 13339375Smsmith## 13439375Smsmith#xuser:\ 13539375Smsmith# :manpath=/usr/share/man /usr/X11R6/man /usr/local/man:\ 13639375Smsmith# :cputime=4h:\ 13739375Smsmith# :datasize=12M:\ 13839375Smsmith# :stacksize=4M:\ 13939375Smsmith# :filesize=8M:\ 14039375Smsmith# :memoryuse=16M:\ 14139375Smsmith# :openfiles=32:\ 14239375Smsmith# :maxproc=48:\ 14339375Smsmith# :tc=standard: 14425369Sache# 14525369Sache# 14639375Smsmith## 14739375Smsmith## Staff users - few restrictions and allow login anytime 14839375Smsmith## 14939375Smsmith#staff:\ 15039375Smsmith# :ignorenologin:\ 15139375Smsmith# :ignoretime:\ 15239375Smsmith# :requirehome@:\ 15339375Smsmith# :accounted@:\ 15439375Smsmith# :path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\ 15539375Smsmith# :umask=022:\ 15639375Smsmith# :tc=standard: 15739375Smsmith# 15839375Smsmith# 15939375Smsmith## 16039375Smsmith## root - fallback for root logins 16139375Smsmith## 16239375Smsmith#root:\ 16339375Smsmith# :path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\ 16439375Smsmith# :cputime=infinity:\ 16539375Smsmith# :datasize=infinity:\ 16639375Smsmith# :stacksize=infinity:\ 16739375Smsmith# :memorylocked=infinity:\ 16839375Smsmith# :memoryuse=infinity:\ 16939375Smsmith# :filesize=infinity:\ 17039375Smsmith# :coredumpsize=infinity:\ 17139375Smsmith# :openfiles=infinity:\ 17239375Smsmith# :maxproc=infinity:\ 17339375Smsmith# :memoryuse-cur=32M:\ 17439375Smsmith# :maxproc-cur=64:\ 17539375Smsmith# :openfiles-cur=1024:\ 17639375Smsmith# :priority=0:\ 17739375Smsmith# :requirehome@:\ 17839375Smsmith# :umask=022:\ 17939375Smsmith# :tc=auth-root-defaults: 18039375Smsmith# 18139375Smsmith# 18239375Smsmith## 18339375Smsmith## Settings used by /etc/rc 18439375Smsmith## 18539375Smsmith#daemon:\ 18639375Smsmith# :coredumpsize@:\ 18739375Smsmith# :coredumpsize-cur=0:\ 18839375Smsmith# :datasize=infinity:\ 18939375Smsmith# :datasize-cur@:\ 19039375Smsmith# :maxproc=512:\ 19139375Smsmith# :maxproc-cur@:\ 19239375Smsmith# :memoryuse-cur=64M:\ 19339375Smsmith# :memorylocked-cur=64M:\ 19439375Smsmith# :openfiles=1024:\ 19539375Smsmith# :openfiles-cur@:\ 19639375Smsmith# :stacksize=16M:\ 19739375Smsmith# :stacksize-cur@:\ 19839375Smsmith# :tc=default: 19939375Smsmith# 20039375Smsmith# 20139375Smsmith## 20239375Smsmith## Settings used by news subsystem 20339375Smsmith## 20439375Smsmith#news:\ 20539375Smsmith# :path=/usr/local/news/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\ 20639375Smsmith# :cputime=infinity:\ 20739375Smsmith# :filesize=128M:\ 20839375Smsmith# :datasize-cur=64M:\ 20939375Smsmith# :stacksize-cur=32M:\ 21039375Smsmith# :coredumpsize-cur=0:\ 21139375Smsmith# :maxmemorysize-cur=128M:\ 21239375Smsmith# :memorylocked=32M:\ 21339375Smsmith# :maxproc=128:\ 21439375Smsmith# :openfiles=256:\ 21539375Smsmith# :tc=default: 21639375Smsmith# 21739375Smsmith# 21839375Smsmith## 21939375Smsmith## The dialer class should be used for a dialup PPP/SLIP accounts 22039375Smsmith## Welcome messages/news suppressed 22139375Smsmith## 22239375Smsmith#dialer:\ 22339375Smsmith# :hushlogin:\ 22439375Smsmith# :requirehome@:\ 22539375Smsmith# :cputime=unlimited:\ 22639375Smsmith# :filesize=2M:\ 22739375Smsmith# :datasize=2M:\ 22839375Smsmith# :stacksize=4M:\ 22939375Smsmith# :coredumpsize=0:\ 23039375Smsmith# :memoryuse=4M:\ 23139375Smsmith# :memorylocked=1M:\ 23239375Smsmith# :maxproc=16:\ 23339375Smsmith# :openfiles=32:\ 23439375Smsmith# :tc=standard: 23539375Smsmith# 23639375Smsmith# 23739375Smsmith## 23839375Smsmith## Site full-time 24/7 PPP/SLIP connections 23939375Smsmith## - no time accounting, restricted to access via dialin lines 24039375Smsmith## 24139375Smsmith#site:\ 24239375Smsmith# :ignoretime:\ 24346209Shoek# :passwordtime@:\ 24439375Smsmith# :refreshtime@:\ 24539375Smsmith# :refreshperiod@:\ 24639375Smsmith# :sessionlimit@:\ 24739375Smsmith# :autodelete@:\ 24839375Smsmith# :expireperiod@:\ 24939375Smsmith# :graceexpire@:\ 25039375Smsmith# :gracetime@:\ 25139375Smsmith# :warnexpire@:\ 25239375Smsmith# :warnpassword@:\ 25339375Smsmith# :idletime@:\ 25439375Smsmith# :sessiontime@:\ 25539375Smsmith# :daytime@:\ 25639375Smsmith# :weektime@:\ 25739375Smsmith# :monthtime@:\ 25839375Smsmith# :warntime@:\ 25939375Smsmith# :accounted@:\ 26039375Smsmith# :tc=dialer:\ 26139375Smsmith# :tc=staff: 26239375Smsmith# 26339375Smsmith# 26439375Smsmith## 26539375Smsmith## Example standard accounting entries for subscriber levels 26639375Smsmith## 26739375Smsmith# 26839375Smsmith#subscriber|Subscribers:\ 26939375Smsmith# :accounted:\ 27039375Smsmith# :refreshtime=180d:\ 27139375Smsmith# :refreshperiod@:\ 27239375Smsmith# :sessionlimit@:\ 27339375Smsmith# :autodelete=30d:\ 27439375Smsmith# :expireperiod=180d:\ 27539375Smsmith# :graceexpire=7d:\ 27639375Smsmith# :gracetime=10m:\ 27739375Smsmith# :warnexpire=7d:\ 27839375Smsmith# :warnpassword=7d:\ 27939375Smsmith# :idletime=30m:\ 28039375Smsmith# :sessiontime=4h:\ 28139375Smsmith# :daytime=6h:\ 28239375Smsmith# :weektime=40h:\ 28339375Smsmith# :monthtime=120h:\ 28439375Smsmith# :warntime=4h:\ 28539375Smsmith# :tc=standard: 28639375Smsmith# 28739375Smsmith# 28839375Smsmith## 28939375Smsmith## Subscriber accounts. These accounts have their login times 29039375Smsmith## accounted and have access limits applied. 29139375Smsmith## 29239375Smsmith#subppp|PPP Subscriber Accounts:\ 29339375Smsmith# :tc=dialer:\ 29439375Smsmith# :tc=subscriber: 29539375Smsmith# 29639375Smsmith# 29739375Smsmith#subslip|SLIP Subscriber Accounts:\ 29839375Smsmith# :tc=dialer:\ 29939375Smsmith# :tc=subscriber: 30039375Smsmith# 30139375Smsmith# 30239375Smsmith#subshell:Shell Subscriber Accounts:\ 30339375Smsmith# :tc=subscriber: 30439375Smsmith# 305