Haven't seen a response/updated profile yet but is it Ubuntu/Debian?
-I see you're running 5.0.4 per your current profile.
Root usually returns 1024 while the zimbra user should return 524288 (after 5.0.2
Bug 23211 - Increase max open file descriptors for 'zimbra' user)
If it doesn't:
nano /etc/pam.d/su
Uncomment/remove the # so a line reads:
session required pam_limits.so
nano /etc/pam.d/common-session
Make it read:
session required pam_limits.so
Check the /etc/security/limits.conf as well
zmcontrol stop
zmcontrol start
pam.d should update on the fly so you shouldn't have to restart the box, as long as your now getting the proper ulimit from the commands listed in my prior post.
This has been fixed for 5.0.5:
Bug 24897 - update /etc/pam.d/su on ubuntu and debian so ulimits get set properly 5.0.5 is Released!
From
Gratisoft.us - Current Stable Version of Sudo Info Quote:
Major changes from version 1.6.9p12 to 1.6.9p13:
* Sudo will now set the nproc resource limit to unlimited on Linux systems to work around Linux's setuid() resource limit semantics. On PAM systems the resource limits will be reset by pam_limits.so before the command is executed.
|
So it looks like upgrading your sudo could fix it (if possible on your platform version/if your package update program goes that new -p15 is also out in a few days- or if you want to give a shot at manual methods).
OR
If your running sudo as say root - you can up the limits for root and then call sudo.
As root:
ulimit -n 2048
OR
stick with:
sudo -i
enter the password, then:
su - zimbra