- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- limits on stack/file size for user
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
Forums
Discussions
Discussions
Discussions
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
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
11-27-2003 08:10 PM
11-27-2003 08:10 PM
limits on stack/file size for user
Is there any way on hpux to set the limit on
1. FILE size
2. DATA segment
3. STACK size
4. Core file size
5. CPU time
on a user basis. For example, can it be ensured that any process launched by a specific user does not consume certain stack or data segment size.
Regards
Jayesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2003 08:15 PM
11-27-2003 08:15 PM
Re: limits on stack/file size for user
See ulimit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2003 08:16 PM
11-27-2003 08:16 PM
Re: limits on stack/file size for user
Check the command
# ulimit -a
# man ulimit
for more.
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2003 08:16 PM
11-27-2003 08:16 PM
Re: limits on stack/file size for user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2003 08:35 PM
11-27-2003 08:35 PM
Re: limits on stack/file size for user
What I need is not a global setting that applies for all users. But the ability to set individual limits based on the user.
ulimit does not provide the answer to my question. Please let me know if I am unclear in my explanation.
Regards
Jayesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2003 08:38 PM
11-27-2003 08:38 PM
Re: limits on stack/file size for user
as already said ulimit is the right command (man ulimit).
In order to fix changes, you should set ulimit commands in user' .profile.
An useful doc about it:
KBRC00013375 - What happens when a program core file exceeds file system space?
It contains other docs ID, for example:
UNX1000203 - Can you limit the size of a core file on 10.X?
I hope this helps you.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2003 08:46 PM
11-27-2003 08:46 PM
Re: limits on stack/file size for user
No you are very clear, use ulimit in the /etc/profile (global).
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2003 09:04 PM
11-27-2003 09:04 PM
Re: limits on stack/file size for user
I apologize because I don't want to contradict a Royalty...
Just attention: in order to fix ulimit command for an user, it should be inserted in .profile of that user.
In doc UNX1000203 that I have already indicated:
*****************************
If you always want this behavior, put this command in your personal shell
initialization file. (The /etc/profile file is a bad choice for this
command, since it gets read by other shells that do not understand
`ulimit -c').
*****************************
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2003 09:29 PM
11-27-2003 09:29 PM
Re: limits on stack/file size for user
Please feel free to contradict me (:-).
What kind of shells do your users use ?
Kind regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 02:44 AM
11-28-2003 02:44 AM
Re: limits on stack/file size for user
Just want to add a little reminder, some ulimit settings also depend on kernel parameters, e.g "ulimit -d" can not exceed maxdsiz or maxdsiz_64bit
thanks,
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 03:01 AM
11-28-2003 03:01 AM
Re: limits on stack/file size for user
To add more, sh-posix is the default shell in hpux. You can modify the ulimit in a posix shell only. ksh doesnt support in modifying those values. This is most suitable for specifying different limits for different users.
Kernel parameters are more global.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 03:12 AM
11-28-2003 03:12 AM
Re: limits on stack/file size for user
Setting limits in .profile is not a solution as they can be overriden and not always effective. What I was looking is some way of per user kernel parameter or some other per user setting independent of the shell.
Is setting of this feature available in better way on other operating systems (other than hpux).
Regards
Jayesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 03:42 AM
11-28-2003 03:42 AM
Re: limits on stack/file size for user
on Linux systems there is a possibility:
/etc/security/limits.conf file contains ulimit settings about users but on HP-UX this file and feature don't exist and the only one possibility is ulimit in .profile.
Anyway really and gladly I will wait replies that deny my statement.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 04:38 AM
11-28-2003 04:38 AM
Re: limits on stack/file size for user
Thanks for your reply. I will look into the limits.conf file. Can you please let me know the format for this file?
I too gladly wait replies that deny your statement that this feature is unavailable on hpux.
Regards
Jayesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2003 06:12 PM
11-29-2003 06:12 PM
Re: limits on stack/file size for user
Probably you can add this module to HPUX (AFAIK, HPUX 11.xx supports PAM)
Regards,
Vitaly.
See See /usr/share/doc/pam-version/txts/README.pam_limits for more.
(on linux, of course)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 08:52 PM
11-30-2003 08:52 PM
Re: limits on stack/file size for user
/etc/security/limits.conf file sees as follows:
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#
#
#Where:
#
# - an user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#
#
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open files
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit
# - maxlogins - max number of logins for this user
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
#
#
#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
# End of file
Anyway it is on Linux systems. As far as I know there isn't the same feature on HP-UX O.S., even with PAM integration.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 09:06 PM
11-30-2003 09:06 PM
Re: limits on stack/file size for user
HPUX 11 is PAM-aware OS.
So even if there is no limits PAM module for HPUX, it's possible to port Linux module or write by yourself.
http://www.us.kernel.org/pub/linux/libs/pam/index.html may help you
Regards,
Vitaly