After setting ulimit to unlimited, I am not able to login to machine

Posted by user419534 on Super User See other posts from Super User or by user419534
Published on 2011-09-25T10:14:53Z Indexed on 2012/06/26 21:20 UTC
Read the original article Hit count: 203

Filed under:

In one of requirment, I had to set ulimit on one of my machine to unlimited.

For this I changed following in /etc/security/limits.conf as below

# End of file
oracle   soft   nofile    unlimited
oracle   hard   nofile    unlimited
oracle   soft   nproc    131072
oracle   hard   nproc    131072
oracle   soft   core    unlimited
oracle   hard   core    unlimited
oracle   soft   memlock    50000000
oracle   hard   memlock    50000000

*           soft    nofile          unlimited
*           hard    nofile          unlimited

and changed /etc/profile

if [ $USER = "oracle" ]; then
        if [ $SHELL = "/bin/ksh" ]; then
              ulimit -p unlimited
              ulimit -n unlimited
        else
              ulimit -u unlimited -n unlimited
        fi
fi

I logged out. I am not able to connect ot machine at all. could you please someone help on this.

© Super User or respective owner

Related posts about unix