이철혁 (msql )
[참고] 사용자 제한 limits.conf 1999-08-20 15:33 166 line
다음은 /etc/security/limits.conf 의 내용입니다.
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - an user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open files
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit
# - maxlogins - max number of logins for this user
#
#<domain> <type> <item> <value>
#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
이런식으로 화일에 써있을겁니다.
<domain> 란에는 아이디라 그룹명을 써주시면 됩니다.
ID를 쓸때는 그냥 쓰면 되구요.
그룹명을 쓸때는 앞에다가 @표시를 하시면 됩니다.
<type> 란은 soft와 hard 라는 것이 있습니다.
hard는 무조건 허용을 하지 않는 것이고,
soft는 일종의 경고만 주는 것이므로 크게 의미가 없습니다.
<item> 은 사용할 명을 적어 주면 되지요.
<value>값은 숫자겠지요.
뜻은 이렇게 볼수 있을겁니다.
<domain>이라는 ID나 그룹을 <item>을 <value>로 <type> 한다는.. 뜻이