About rlimit of linux box.

I misunderstood and confused about rlimit of linux-box,so I will write about rlimit consulting the kernel source of linux-2.6.32.

  1. The rlimit of running process are shown in /proc//limits.
  2. The default values of rlimit are defined in linux-2.6.32/include/asm-generic/resource.h. If no other parent process sets rlimit, this default value is used.
  3. The limits.so in pam redefines rlimit in many linux distribution (See. man limits.so and also /etc/pam.d/login etc...). Then if users login via sshd/login process,these process use pam in authentication and reset the rlimit according to /etc/security/limits.conf.