vi /etc/profile

if [ a${user}a = "aroota" ]

then
if [ a${SHELL}a = "a/bin/ksha" ]
then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

====================

cd /etc/security/

vim limits.conf
* soft nproc 2047
* hard nproc 16384
* soft nofile 32767
* hard nofile 65536