Bug 467772
Summary: | sudo with -i inherits caller's ulimits | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Matt Savona <matt.savona> |
Component: | sudo | Assignee: | Daniel Kopeček <dkopecek> |
Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE <qe-baseos-auto> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5.2 | CC: | juanino, matt.savona, mmalik, mrkfact, pvrabec, sgrubb |
Target Milestone: | rc | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-08-24 14:19:57 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Matt Savona
2008-10-20 20:17:29 UTC
Also worth noting, if a user has limits configured in limits.conf, then proceeds to sudo -u [username] -i, the sudoed user also inherits the limits that were set for the parent user (similar to the first example above, where I explicitly set the limit with ulimit). The man page for sudo details what it means when -i is passed. It does not claim to reset any rlimits. I also researched other sudo and su implementations and they usually detail what the expectations are for login shells but none seem to change rlimits. If we fix this, then we need to consult with the upstream developers to accept the widening of the definition of login. So, this is a feature request and not a bug fix. Closing as WONTFIX since this is an RFE and we are going to maintenance mode. We may backport this feature from upstream if they implement it. Please consider contacting upstream with this request. |