Operating System - HP-UX
1832973 Members
2814 Online
110048 Solutions
New Discussion

Re: ulimit change for user

 
SOLVED
Go to solution
$t!$-
Advisor

ulimit change for user

when i try to change coredump size for a user x using command 'ulimit -Hc 10000 ,it gives me below error -
"su: ulimit: The specified value exceeds the user's allowable limit."

currently coredump size for only this user is zero.
/.root#ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2097152
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 0
nofiles(descriptors) 4092

I have checked /etc/profile and $Home/.profile file. Nowhere mentioned about user limits.
Can anyone suggest me how can i increase coredump value for user X
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: ulimit change for user

Shalom,

The ulimit values for root may be setting overall system limits. If you change them for root you may overcome this issue.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: ulimit change for user

>Can anyone suggest me how can I increase coredump value for user X

You can't. Once it is 0, only root can change it, and only for itself.

You need to figure out how it got to be 0 and don't do that. ;-)

Also, I've had no end of problems using ulimit -Hx, perhaps just leave the "H" off??
Bill Hassell
Honored Contributor

Re: ulimit change for user

Someone with root capability most likely added:

ulimit -c 0

to /etc/profile. This is the same as -Hc 0 as it is a hard limit. Once a hard limit has been set, it cannot be raised. That's why a global setting of core size should always be 'soft' as in:

ulimit -Sc 0

then any user that needs to raise the limit temporarily can do so. I would recommend everyone use -Sc for both global and local settings. That way, the limit can be raised and lowered without root's intervention. By leaving ulimit -Sc 0 in /etc/profile, the default is no core files for all users unless they want them.


Bill Hassell, sysadmin
$t!$-
Advisor

Re: ulimit change for user

Thanks to all for their response, specially to Steven. coredump size is for root was set to zero. I have increased first for root, then incresed for user X. Now its working.
$t!$-
Advisor

Re: ulimit change for user

Thanks for quick response