ulimit doesn't take effect using ssh, unless su - to UID

Solution Verified - Updated -

Issue

Hi,

We encounter issue where when we set ulimit in limit.conf is not take effect by default when we ssh in. We will only get the ulimit we set, when we su - the same id again.

We are running ssh-tectia-server-6.1.9-95. Right now we are suspecting tectia-server didn't enable pam module therefore ulimit set in limit.conf is not take effect.

The limit affecting our app as we encounter error 'too many open files'

Environment

  • Red Hat Enterprise Linux 5
  • ssh-tectia-server-6.1.9-95

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.