Skip to navigation

"could not open session" shows when nofile is set to unlimited in /etc/security/limits.conf

Updated 2013-10-09T13:50:55+00:00

Issue

  • When the nofile is set to unlimited in /etc/security/limits.conf file the user cannot login:

    user  soft nofile 1024
    user  hard nofile unlimited
    
    
    
    # su - user
    could not open session
    

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 4

Subscriber content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.