Why does "`su - <user>`" not apply `/etc/security/limits.conf` settings, but "`sudo -i -u <user>`" does?

Solution Verified - Updated -

Issue

When trying to set ulimit for a user on the system via /etc/security/limits.conf it was discovered that this did not get applied to the user when trying to "su -" to that user but that it did work when using "sudo -i -u".

Environment

  • Red Hat Enterprise Linux 5.6
  • s/390 architecture

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.