ulimit operation not permitted in sudo
Issue
With sudo-1.7.4p5-9.el6_2.x86_64
, it was possible to issue the following command:
# sudo /bin/su frodo.u -c "bash -c 'ulimit -c unlimited;exit'"
With later versions, sudo-1.7.4p5-11.el6_3.x86_64
, sudo-1.7.4p5-12.el6_3.x86_64
and
sudo-1.7.4p5-13.el6_3.x86_64
, the same command gives the following:
bash: line 0: ulimit: core file size: cannot modify limit: Operation not permitted
Environment
- Red Hat Enterprise Linux (RHEL) 6.3
- sudo-1.7.4p5-9.el6_2.x86_64 [Works]
- sudo-1.7.4p5-11.el6_3.x86_64, sudo-1.7.4p5-12.el6_3.x86_64, sudo-1.7.4p5-13.el6_3.x86_64 [Fails]
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.