Sharing Knowledge | System Admin Articles

Change shell limits of User in Linux



Switch to particular user from root account and type the following to see current limits of that user


ulimit -a  -- show all limits
ulimit -u  -- Max User files
ulimit -s  -- Stack Size
ulimit -i   -- Pending signals
ulimit -p  -- Max process allowed



Edit /etc/security/limits.conf and add soft and hard limit for user shell limits:


To change the "soft" and "hard" limits for the maximum number of



user1              soft     nproc           2000
user1              hard    nproc           8000






For Global Change, 


Edit the file  /etc/bash.bashrc.local
                 /etc/profile.local




Use "if" statment to explicit for particular user.

Hope this helps..


Labels: Linux

My Profile PhotoAbout the Author

I'm Parthiban, An UNIX System Admin by Profession. I'm Experienced in Linux/Unix System Administration and Scripting. I have done lot of work on the infrastructure Mgmt side in Linux, UNIX and Windows system administration, Hardware, Storage and Data center. I'm blogging since 2008.
Follow Me On Twitter or On Facebook

0 Comments for "Change shell limits of User in Linux"

What do you think about this Article? Add your Opinion..!

Back To Top