Login.conf
Jump to navigation
Jump to search
FreeBSD login.conf vartotojų klasių resursų ribojimas. Klasę galime priskirti
pw usermod vartotojas -L klasė
PVZ.:
pw usermod jonas -L norm
Tekstas atitauktas nuo krašto TAB'ais ne space'ais (nors skirtumo labai didelio ir nėra bet tvarkingiau).
default:\ :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin:\ :umask=022:\ :datasize-max=512M:\ :datasize-cur=512M:\ :maxproc-max=128:\ :maxproc-cur=64:\ :openfiles-cur=128:\ :stacksize-cur=4M:\ :localcipher=blowfish,6:\ :ypcipher=old:\ :tc=auth-defaults:\ :tc=auth-ftp-defaults: low:\ :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin:\ :umask=022:\ :datasize-max=65M:\ :datasize-cur=65M:\ :maxproc-max=15:\ :maxproc-cur=10:\ :cputime=600:\ :openfiles-cur=512:\ :stacksize-cur=4M:\ :coredumpsize=0:\ :priority=0:\ :memorylocked=128400:\ :memoryuse=9126:\ :localcipher=blowfish,6:\ :login-tries=3:\ :ypcipher=old:\ :tc=auth-defaults:\ :tc=auth-ftp-defaults: norm:\ :welcome=/etc/motd:\ :path=/usr/bin /bin /usr/sbin /sbin /usr/local/bin:\ :umask=022:\ :datasize-max=65M:\ :datasize-cur=65M:\ :maxproc-max=15:\ :maxproc-cur=10:\ :cputime=600:\ :openfiles-cur=512:\ :stacksize-cur=4M:\ :coredumpsize=0:\ :priority=0:\ :memorylocked=128400:\ :memoryuse=9126:\ :stacksize-cur=4096:\ :localcipher=blowfish,6:\ :ycipher=old:\ :tc=auth-defaults:\ :tc=auth-ftp-defaults:\ :tc=default: :login-tries=3: vip:\ :welcome=/etc/motd.vip:\ :path=/usr/bin /bin /usr/sbin /sbin /usr/local/bin:\ :umask=022:\ :datasize-max=65M:\ :datasize-cur=65M:\ :maxproc-max=50:\ :maxproc-cur=40:\ :cputime=600:\ :openfiles-cur=512:\ :stacksize-cur=4M:\ :coredumpsize=0:\ :priority=0:\ :memorylocked=128400:\ :memoryuse=9126:\ :stacksize-cur=4096:\ :login-tries=3: pow:\ :welcome=/etc/motd.power:\ :path=/usr/bin /bin /usr/sbin /sbin /usr/local/bin:\ :umask=022:\ :datasize-max=65M:\ :datasize-cur=65M:\ :maxproc-max=120:\ :maxproc-cur=100:\ :cputime=600:\ :openfiles-cur=512:\ :stacksize-cur=4M:\ :coredumpsize=0:\ :priority=0:\ :memorylocked=128400:\ :memoryuse=9126:\ :stacksize-cur=4096:\ :login-tries=3:
Po login.conf modifikavimo būtina sukurti berkeley DB hash'uotą duombazę.
cap_mkdb /etc/login.conf
Tinka visoms FreeBSD versijoms pradedant v5.