Unable to login to the system after changing the ulimits to -1
Issue
-
Unable to login to the system after changing the ulimits to -1 in
/etc/security/limits.conffile:$ less /etc/security/limits.conf * soft core -1 * hard core -1 * soft data -1 * hard data -1 * soft maxlogins -1 * hard maxlogins -1 * soft maxsyslogins -1 * hard maxsyslogins -1Similarly changed the soft/hard limits for below options to -1:
$ less /etc/security/limits.conf #<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 file descriptors # - 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 (KB) # - maxlogins - max number of logins for this user # - maxsyslogins - max number of logins on the system # - priority - the priority to run user process with # - locks - max number of file locks the user can hold # - sigpending - max number of pending signals # - msgqueue - max memory used by POSIX message queues (bytes) # - nice - max nice priority allowed to raise to values: [-20, 19] # - rtprio - max realtime priority
Environment
- Red Hat Enterprise Linux 6.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.