Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

migrated from stackoverflow.com Sep 27 '11 at 3:34

This question came from our site for professional and enthusiast programmers.

    
the man page for limits.conf doesn't tell me if unlimited is a valid value, so i wonder if it thinks that means 0. –  Dan D. Sep 25 '11 at 10:26

1 Answer 1

If the issue is a problem with the /etc/profile edit you made, and assuming you are using ssh to connect, you can try:

ssh youruser@yourhost bash --noprofile

bash won't load the global or user-specific startup files (so you won't even have a PS1 variable set, it will look strange).

(I don't know how to do that with Ksh.)

share|improve this answer
    
Awesome!!! It worked I could login to system. I will note this command in my book :) Thank you so much!!! –  user419534 Sep 25 '11 at 10:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.