Red Hat Customer Portal

Skip to main content

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

Solution Verified - Updated -


  • 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


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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In