/etc/security/limits.conf

* soft core unlimited 

* hard core unlimited 

* soft data unlimited

* hard data unlimited

* soft fsize unlimited

* hard fsize unlimited

* soft memlock -1 

* hard memlock -1 

* soft nofile 20000

* hard nofile 20000

* soft rss unlimited

* hard rss unlimited

* soft stack unlimited

* hard stack unlimited

* soft cpu unlimited

* hard cpu unlimited

* soft nproc unlimited

* hard nproc unlimited

* soft as unlimited

* hard as unlimited

* soft maxlogins unlimited

* hard maxlogins unlimited

* soft maxsyslogins unlimited

* hard maxsyslogins unlimited

* soft priority 0

* hard priority 0

* soft locks unlimited

* hard locks unlimited

* soft sigpending unlimited

* hard sigpending unlimited

* soft msgqueue unlimited

* hard msgqueue unlimited

* soft nice 0

* hard nice 0

* soft rtprio unlimited

* hard rtprio unlimited

 

 

core

limits the core file size (KB)

 

data

maximum data size (KB)

 

fsize

maximum filesize (KB)

 

memlock

maximum locked-in-memory address space (KB)

 

nofile

maximum number of open files

 

rss

maximum resident set size (KB) (Ignored in Linux 2.4.30 and higher)

 

stack

maximum stack size (KB)

 

cpu

maximum CPU time (minutes)

 

nproc

maximum number of processes

 

as

address space limit (KB)

 

maxlogins

maximum number of logins for this user except for this with uid=0

 

maxsyslogins

maximum number of logins on system

 

priority

the priority to run user process with (negative values boost process priority)

 

locks

maximum locked files (Linux 2.4 and higher)

 

sigpending

maximum number of pending signals (Linux 2.6 and higher)

 

msqqueue

maximum memory used by POSIX message queues (bytes) (Linux

2.6 and higher)

 

nice

maximum nice priority allowed to raise to (Linux 2.6.12 and higher) values: [-20,19]

 

rtprio

maximum realtime priority allowed for non-privileged processes (Linux 2.6.12 and higher)

 

chroot

the directory to chroot the user to

 

你可能感兴趣的:(Security)