Linux Operating System (MOSC)

MOSC Banner

limits.conf settings affected by default shell

edited Jan 26, 2012 11:21PM in Linux Operating System (MOSC) 6 commentsAnswered
I ran into an issue with entries from limits.conf being affected when users default shell switched from csh to ksh. Once the switch was made the user lost the nofile and nproc settings. I ran an strace for both shells (edit passwd and strace -o"file" su - "account") and it shows both sessions reading the limits file and picking up the changes

strace line showing modified nofile hardlimit being set

  setrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=64*1024}) = 0

The above line along with the nproc settings appear to be picked up with both shells but when ksh is default shell.... actually anything but csh... it appears the new setting is not inherited by the shell. It is set to 8k not 64k

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center