- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can non-root users use unlimited for ulimit?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 09:13 AM
тАО01-21-2010 09:13 AM
Can non-root users use unlimited for ulimit?
I've searched ITRC as well as the web and haven't found a definitive answer. I've also talked to HP support and didn't get a definitive answer - he couldn't give me a case number for some reason and also never emailed me any supporting doc for what he believed. :-(
So my question is: Can a non-root user use unlimited as a value for a ulimit command in sh (or ksh) on HP-UX (especially for data and stack limits)? Federico from HP believed a non-root user could not use unlimited, and my experience has pretty much supported that.
Thanks for any info!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 10:16 AM
тАО01-21-2010 10:16 AM
Re: Can non-root users use unlimited for ulimit?
Yes this is often done for the oracle user to make the oracle database function normally.
Try doing it in a regular user's .profile
Some things you just have to test.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 12:55 PM
тАО01-21-2010 12:55 PM
Re: Can non-root users use unlimited for ulimit?
Hence by logic -- a non-root user may never set their soft limit to RLIM_INFINITY unless they _started_ there (which would require a root user to set it in the first place for a parent process).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 01:01 PM
тАО01-21-2010 01:01 PM
Re: Can non-root users use unlimited for ulimit?
$ ulimit -s unlimited
sh: ulimit: The specified value exceeds the user's allowable limit.
$ ulimit -d unlimited
sh: ulimit: The specified value exceeds the user's allowable limit.
maxdsiz and maxdsiz_64bit are the kernel tunables that I can set for data; maxssiz and maxssiz_64bit are the kernel tunables that I can set for stack. Both have to be set to a number, and I'm not sure that even if I set those tunables to the highest number I can set them to will let me use unlimited (for either hard or soft limits) for stack and data as a regular non-root user. I don't think I have a test system handy that I can use to max those values out and test that way, but I'll see if I do and reply back with my findings.
Was just hoping someone could say yes or no definitively based on something buried deep in the bowels of docs.hp.com or somewhere in some OS code (since my search skills apparently aren't up to snuff to find anything about it). :-)
Thanks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 10:39 PM
тАО01-21-2010 10:39 PM
Re: Can non-root users use unlimited for ulimit?
Nobody can use unlimited for the data and stack, not even root. These are bounded by kernel parms.
>I'm not sure that even if I set those tunables to the highest number I can set them to will let me use unlimited for stack and data as a regular non-root user.
Right, you can only set them to the value of the kernel parm.
>I can use to max those values out and test that way
Be very careful of increasing maxssiz to the max, you may not be able to boot.
>Was just hoping someone could say yes or no definitively
The answer for all practical purposes is no, you can't be unlimited for the segment sizes.
>Don: which would require a root user to set it in the first place for a parent process.
Yes but even a root user must answer to a higher authority and be limited by the kernel parms. ;-)
Perhaps it is useful in that if the root user also changes the kernel parm, he doesn't have to use ulimit again, or relogin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 01:16 AM
тАО01-22-2010 01:16 AM
Re: Can non-root users use unlimited for ulimit?
You can set the corefile size to unlimited. But I guess this is a ulimit bug where it displays "4194303" when it is already unlimited?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 06:15 AM
тАО01-22-2010 06:15 AM
Re: Can non-root users use unlimited for ulimit?
All that means is that rlimit/ulimit _reports_ unlimited, however. The actual meaningful bound is still the kernel tunable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2010 03:26 AM
тАО01-23-2010 03:26 AM
Re: Can non-root users use unlimited for ulimit?
Didn't I say that? :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2010 05:28 AM
тАО01-23-2010 05:28 AM