Bug 852045

Summary: ulimit -c got Operation not permitted
Product: Red Hat Enterprise Linux 6 Reporter: Peter Svensson <peter.svensson>
Component: sudoAssignee: Daniel Kopeček <dkopecek>
Status: CLOSED ERRATA QA Contact: Aleš Mareček <amarecek>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: amarecek, ksrot, mvadkert, pvrabec
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: sudo-1.8.6p3-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 09:44:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Svensson 2012-08-27 12:32:47 UTC
Description of problem:

When using sudo to change ulmit for a user, we get Operation not permitted after sudo version 1.7.4p5-9


Version-Release number of selected component (if applicable): 1.7.4p5


How reproducible:

rpm --queryformat "%{VERSION}-%{RELEASE}\n" -q sudo 
1.7.4p5-13.el6_3
sudo /bin/su frodo.u -c "bash -c 'ulimit -c unlimited;exit'"
bash: line 0: ulimit: core file size: cannot modify limit: Operation not permitted

rpm --queryformat "%{VERSION}-%{RELEASE}\n" -q sudo 
1.7.4p5-12.el6_3
sudo /bin/su frodo.u -c "bash -c 'ulimit -c unlimited;exit'"
bash: line 0: ulimit: core file size: cannot modify limit: Operation not permitted

rpm --queryformat "%{VERSION}-%{RELEASE}\n" -q sudo 
1.7.4p5-11.el6
sudo /bin/su frodo.u -c "bash -c 'ulimit -c unlimited;exit'"
bash: line 0: ulimit: core file size: cannot modify limit: Operation not permitted

rpm --queryformat "%{VERSION}-%{RELEASE}\n" -q sudo 
1.7.4p5-9.el6_2
sudo /bin/su frodo.u -c "bash -c 'ulimit -c unlimited;exit'"
This works!!! 

  
Actual results:
cannot modify limit: Operation not permitted

Expected results:
The ulimit is changed 

Additional info:
-

Comment 6 Karel Srot 2012-10-17 07:31:27 UTC
I believe this is a duplicate to bug 836242.

Comment 7 Daniel Kopeček 2012-10-17 08:20:33 UTC
(In reply to comment #6)
> I believe this is a duplicate to bug 836242.

True... don't know why I didn't mark it as such.

Comment 11 errata-xmlrpc 2013-02-21 09:44:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0363.html