login.conf revision 48814
121526Sdavidn# Sample login.conf - login class capabilities database. 225901Sgpalmer# To speed up access to this data, you can use /usr/bin/cap_mkdb 321526Sdavidn# to create a database form of this file: 421526Sdavidn# 521526Sdavidn# cap_mkdb /etc/login.conf 621526Sdavidn# 721526Sdavidn# Don't forget to do this after each edit as well! 821526Sdavidn# 921526Sdavidn# This file controls resource limits, accounting limits and 1021526Sdavidn# default user environment settings. 1121526Sdavidn# 1248814Snik# $Id: login.conf,v 1.31 1999/05/28 11:07:16 jkh Exp $ 1321526Sdavidn# 1421526Sdavidn 1539375Smsmith# Default settings effectively disable resource limits, see the 1639375Smsmith# examples below for a starting point to enable them. 1721526Sdavidn 1842149Shoek# defaults 1921526Sdavidn# These settings are used by login(1) by default for classless users 2021526Sdavidn# Note that entries like "cputime" set both "cputime-cur" and "cputime-max" 2121526Sdavidn 2221526Sdavidndefault:\ 2321526Sdavidn :copyright=/etc/COPYRIGHT:\ 2421526Sdavidn :welcome=/etc/motd:\ 2547583Sjkh :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\ 2646158Sjkh :path=~/bin /bin /usr/bin /usr/local/bin /usr/X11R6/bin:\ 2742515Sasami :nologin=/var/run/nologin:\ 2839375Smsmith :cputime=unlimited:\ 2939375Smsmith :datasize=unlimited:\ 3039375Smsmith :stacksize=unlimited:\ 3139375Smsmith :memorylocked=unlimited:\ 3239375Smsmith :memoryuse=unlimited:\ 3339375Smsmith :filesize=unlimited:\ 3439375Smsmith :coredumpsize=unlimited:\ 3539375Smsmith :openfiles=unlimited:\ 3639375Smsmith :maxproc=unlimited:\ 3721538Sdavidn :priority=0:\ 3821526Sdavidn :ignoretime@:\ 3939375Smsmith :umask=022: 4021526Sdavidn 4121943Sdavidn 4221538Sdavidn# 4339375Smsmith# A collection of common class names - forward them all to 'default' 4439375Smsmith# (login would normally do this anyway, but having a class name 4539375Smsmith# here suppresses the diagnostic) 4621538Sdavidn# 4739375Smsmithstandard:\ 4839375Smsmith :tc=default: 4921538Sdavidnxuser:\ 5039375Smsmith :tc=default: 5121526Sdavidnstaff:\ 5239375Smsmith :tc=default: 5339375Smsmithdaemon:\ 5439424Sdt :tc=default: 5539375Smsmithnews:\ 5639375Smsmith :tc=default: 5739375Smsmithdialer:\ 5839375Smsmith :tc=default: 5921526Sdavidn 6021526Sdavidn# 6139375Smsmith# Root can always login 6221526Sdavidn# 6348814Snik# N.B. login_getpwclass(3) will use this entry for the root account, 6448814Snik# in preference to 'default'. 6521526Sdavidnroot:\ 6639375Smsmith :ignorenologin:\ 6739375Smsmith :tc=default: 6821526Sdavidn 6921526Sdavidn# 7039375Smsmith# Russian Users Accounts. Setup proper environment variables. 7121526Sdavidn# 7239375Smsmithrussian:Russian Users Accounts:\ 7339375Smsmith :charset=KOI8-R:\ 7439375Smsmith :lang=ru_RU.KOI8-R:\ 7521526Sdavidn :tc=default: 7621526Sdavidn 7721526Sdavidn 7839375Smsmith###################################################################### 7939375Smsmith###################################################################### 8039375Smsmith## 8139375Smsmith## Example entries 8239375Smsmith## 8339375Smsmith###################################################################### 8439375Smsmith###################################################################### 8539375Smsmith 8639375Smsmith## Authentication methods 8739375Smsmith## Note that these are disabled by default, and libutil must 8839375Smsmith## be rebuilt with LOGIN_CAP_AUTH defined to use them. 8921526Sdavidn# 9039375Smsmith#auth-defaults:\ 9139375Smsmith# :auth=krb_skey_or_passwd,passwd,kerberos,skey: 9221526Sdavidn# 9339375Smsmith#auth-root-defaults:\ 9439375Smsmith# :auth-login=krb_skey_or_passwd,passwd,kerberos,skey:\ 9539375Smsmith# :auth-rlogin=krb_or_skey,kerberos,skey: 9621526Sdavidn# 9739375Smsmith#auth-ftp-defaults:\ 9839375Smsmith# :auth=skey_or_pwd,passwd,skey: 9921526Sdavidn# 10021526Sdavidn# 10139375Smsmith## Example defaults 10239375Smsmith## These settings are used by login(1) by default for classless users 10339375Smsmith## Note that entries like "cputime" set both "cputime-cur" and "cputime-max" 10421526Sdavidn# 10539375Smsmith#default:\ 10639375Smsmith# :cputime=infinity:\ 10739375Smsmith# :datasize-cur=22M:\ 10839375Smsmith# :stacksize-cur=8M:\ 10939375Smsmith# :memorylocked-cur=10M:\ 11039375Smsmith# :memoryuse-cur=30M:\ 11139375Smsmith# :filesize=infinity:\ 11239375Smsmith# :coredumpsize=infinity:\ 11339375Smsmith# :maxproc-cur=64:\ 11439375Smsmith# :openfiles-cur=64:\ 11539375Smsmith# :priority=0:\ 11639375Smsmith# :requirehome@:\ 11739375Smsmith# :umask=022:\ 11839375Smsmith# :tc=auth-defaults: 11921526Sdavidn# 12021526Sdavidn# 12139375Smsmith## 12239375Smsmith## standard - standard user defaults 12339375Smsmith## 12439375Smsmith#standard:\ 12539375Smsmith# :copyright=/etc/COPYRIGHT:\ 12639375Smsmith# :welcome=/etc/motd:\ 12743220Sdg# :setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\ 12839375Smsmith# :path=~/bin /bin /usr/bin /usr/local/bin:\ 12939375Smsmith# :manpath=/usr/share/man /usr/local/man:\ 13042587Sasami# :nologin=/var/run/nologin:\ 13139375Smsmith# :cputime=1h30m:\ 13239375Smsmith# :datasize=8M:\ 13339375Smsmith# :stacksize=2M:\ 13439375Smsmith# :memorylocked=4M:\ 13539375Smsmith# :memoryuse=8M:\ 13639375Smsmith# :filesize=8M:\ 13739375Smsmith# :coredumpsize=8M:\ 13839375Smsmith# :openfiles=24:\ 13939375Smsmith# :maxproc=32:\ 14039375Smsmith# :priority=0:\ 14139375Smsmith# :requirehome:\ 14246209Shoek# :passwordtime=90d:\ 14339375Smsmith# :umask=002:\ 14439375Smsmith# :ignoretime@:\ 14539375Smsmith# :tc=default: 14621526Sdavidn# 14721526Sdavidn# 14839375Smsmith## 14939375Smsmith## users of X (needs more resources!) 15039375Smsmith## 15139375Smsmith#xuser:\ 15239375Smsmith# :manpath=/usr/share/man /usr/X11R6/man /usr/local/man:\ 15339375Smsmith# :cputime=4h:\ 15439375Smsmith# :datasize=12M:\ 15539375Smsmith# :stacksize=4M:\ 15639375Smsmith# :filesize=8M:\ 15739375Smsmith# :memoryuse=16M:\ 15839375Smsmith# :openfiles=32:\ 15939375Smsmith# :maxproc=48:\ 16039375Smsmith# :tc=standard: 16125369Sache# 16225369Sache# 16339375Smsmith## 16439375Smsmith## Staff users - few restrictions and allow login anytime 16539375Smsmith## 16639375Smsmith#staff:\ 16739375Smsmith# :ignorenologin:\ 16839375Smsmith# :ignoretime:\ 16939375Smsmith# :requirehome@:\ 17039375Smsmith# :accounted@:\ 17139375Smsmith# :path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\ 17239375Smsmith# :umask=022:\ 17339375Smsmith# :tc=standard: 17439375Smsmith# 17539375Smsmith# 17639375Smsmith## 17739375Smsmith## root - fallback for root logins 17839375Smsmith## 17939375Smsmith#root:\ 18039375Smsmith# :path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\ 18139375Smsmith# :cputime=infinity:\ 18239375Smsmith# :datasize=infinity:\ 18339375Smsmith# :stacksize=infinity:\ 18439375Smsmith# :memorylocked=infinity:\ 18539375Smsmith# :memoryuse=infinity:\ 18639375Smsmith# :filesize=infinity:\ 18739375Smsmith# :coredumpsize=infinity:\ 18839375Smsmith# :openfiles=infinity:\ 18939375Smsmith# :maxproc=infinity:\ 19039375Smsmith# :memoryuse-cur=32M:\ 19139375Smsmith# :maxproc-cur=64:\ 19239375Smsmith# :openfiles-cur=1024:\ 19339375Smsmith# :priority=0:\ 19439375Smsmith# :requirehome@:\ 19539375Smsmith# :umask=022:\ 19639375Smsmith# :tc=auth-root-defaults: 19739375Smsmith# 19839375Smsmith# 19939375Smsmith## 20039375Smsmith## Settings used by /etc/rc 20139375Smsmith## 20239375Smsmith#daemon:\ 20339375Smsmith# :coredumpsize@:\ 20439375Smsmith# :coredumpsize-cur=0:\ 20539375Smsmith# :datasize=infinity:\ 20639375Smsmith# :datasize-cur@:\ 20739375Smsmith# :maxproc=512:\ 20839375Smsmith# :maxproc-cur@:\ 20939375Smsmith# :memoryuse-cur=64M:\ 21039375Smsmith# :memorylocked-cur=64M:\ 21139375Smsmith# :openfiles=1024:\ 21239375Smsmith# :openfiles-cur@:\ 21339375Smsmith# :stacksize=16M:\ 21439375Smsmith# :stacksize-cur@:\ 21539375Smsmith# :tc=default: 21639375Smsmith# 21739375Smsmith# 21839375Smsmith## 21939375Smsmith## Settings used by news subsystem 22039375Smsmith## 22139375Smsmith#news:\ 22239375Smsmith# :path=/usr/local/news/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\ 22339375Smsmith# :cputime=infinity:\ 22439375Smsmith# :filesize=128M:\ 22539375Smsmith# :datasize-cur=64M:\ 22639375Smsmith# :stacksize-cur=32M:\ 22739375Smsmith# :coredumpsize-cur=0:\ 22839375Smsmith# :maxmemorysize-cur=128M:\ 22939375Smsmith# :memorylocked=32M:\ 23039375Smsmith# :maxproc=128:\ 23139375Smsmith# :openfiles=256:\ 23239375Smsmith# :tc=default: 23339375Smsmith# 23439375Smsmith# 23539375Smsmith## 23639375Smsmith## The dialer class should be used for a dialup PPP/SLIP accounts 23739375Smsmith## Welcome messages/news suppressed 23839375Smsmith## 23939375Smsmith#dialer:\ 24039375Smsmith# :hushlogin:\ 24139375Smsmith# :requirehome@:\ 24239375Smsmith# :cputime=unlimited:\ 24339375Smsmith# :filesize=2M:\ 24439375Smsmith# :datasize=2M:\ 24539375Smsmith# :stacksize=4M:\ 24639375Smsmith# :coredumpsize=0:\ 24739375Smsmith# :memoryuse=4M:\ 24839375Smsmith# :memorylocked=1M:\ 24939375Smsmith# :maxproc=16:\ 25039375Smsmith# :openfiles=32:\ 25139375Smsmith# :tc=standard: 25239375Smsmith# 25339375Smsmith# 25439375Smsmith## 25539375Smsmith## Site full-time 24/7 PPP/SLIP connections 25639375Smsmith## - no time accounting, restricted to access via dialin lines 25739375Smsmith## 25839375Smsmith#site:\ 25939375Smsmith# :ignoretime:\ 26046209Shoek# :passwordtime@:\ 26139375Smsmith# :refreshtime@:\ 26239375Smsmith# :refreshperiod@:\ 26339375Smsmith# :sessionlimit@:\ 26439375Smsmith# :autodelete@:\ 26539375Smsmith# :expireperiod@:\ 26639375Smsmith# :graceexpire@:\ 26739375Smsmith# :gracetime@:\ 26839375Smsmith# :warnexpire@:\ 26939375Smsmith# :warnpassword@:\ 27039375Smsmith# :idletime@:\ 27139375Smsmith# :sessiontime@:\ 27239375Smsmith# :daytime@:\ 27339375Smsmith# :weektime@:\ 27439375Smsmith# :monthtime@:\ 27539375Smsmith# :warntime@:\ 27639375Smsmith# :accounted@:\ 27739375Smsmith# :tc=dialer:\ 27839375Smsmith# :tc=staff: 27939375Smsmith# 28039375Smsmith# 28139375Smsmith## 28239375Smsmith## Example standard accounting entries for subscriber levels 28339375Smsmith## 28439375Smsmith# 28539375Smsmith#subscriber|Subscribers:\ 28639375Smsmith# :accounted:\ 28739375Smsmith# :refreshtime=180d:\ 28839375Smsmith# :refreshperiod@:\ 28939375Smsmith# :sessionlimit@:\ 29039375Smsmith# :autodelete=30d:\ 29139375Smsmith# :expireperiod=180d:\ 29239375Smsmith# :graceexpire=7d:\ 29339375Smsmith# :gracetime=10m:\ 29439375Smsmith# :warnexpire=7d:\ 29539375Smsmith# :warnpassword=7d:\ 29639375Smsmith# :idletime=30m:\ 29739375Smsmith# :sessiontime=4h:\ 29839375Smsmith# :daytime=6h:\ 29939375Smsmith# :weektime=40h:\ 30039375Smsmith# :monthtime=120h:\ 30139375Smsmith# :warntime=4h:\ 30239375Smsmith# :tc=standard: 30339375Smsmith# 30439375Smsmith# 30539375Smsmith## 30639375Smsmith## Subscriber accounts. These accounts have their login times 30739375Smsmith## accounted and have access limits applied. 30839375Smsmith## 30939375Smsmith#subppp|PPP Subscriber Accounts:\ 31039375Smsmith# :tc=dialer:\ 31139375Smsmith# :tc=subscriber: 31239375Smsmith# 31339375Smsmith# 31439375Smsmith#subslip|SLIP Subscriber Accounts:\ 31539375Smsmith# :tc=dialer:\ 31639375Smsmith# :tc=subscriber: 31739375Smsmith# 31839375Smsmith# 31939375Smsmith#subshell:Shell Subscriber Accounts:\ 32039375Smsmith# :tc=subscriber: 32139375Smsmith# 322