- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: user limit
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
02-13-2005 12:37 PM
02-13-2005 12:37 PM
user limit
I want to change user limit for specific user.
the old limit:
core file size (blocks) 2097151
data seg size (kbytes) 262144
file size (blocks) unlimited
max memory size (kbytes) unlimited
open files 60
pipe size (512 bytes) 16
stack size (kbytes) 8192
cpu time (seconds) unlimited
max user processes 76
virtual memory (kbytes) unlimited
I want to changet with:
core file size (blocks) 2097151
data seg size (kbytes) 2015436
file size (blocks) unlimited
max memory size (kbytes) unlimited
open files 2048
pipe size (512 bytes) 16
stack size (kbytes) 81920
cpu time (seconds) unlimited
max user processes 513
virtual memory (kbytes) unlimited
what command that will run to change this user limit ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2005 02:29 PM
02-13-2005 02:29 PM
Re: user limit
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2005 04:37 PM
02-13-2005 04:37 PM
Re: user limit
ulimit
look at man pages of ulimit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2005 07:51 PM
02-13-2005 07:51 PM
Re: user limit
can you give what command must I do to change user limit max user process??
thx,
piyut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2005 12:27 AM
02-14-2005 12:27 AM
Re: user limit
ulimit -c 2097151
If the user types the above command, the current session environment will now limit all core dumps to 2megs. Now if these changes are needed to control a user's activity, you can modify the user's profile by adding the ulimit commands to the user's $HOME/.profile file. If the user wants to abuse the settings and either removes the commands from .profile or changes them to other values, put the commands into /etc/profile as mentioned above, something like this:
LIMITUSER=billh
if [ $(ulimit -un) = $LIMITUSER ]
then
ulimit -c 2097151
ulimit -d 2015436
... more ulimit commands ...
fi
Now the above list does not look like the standard HP-UX POSIX sh or ksh ulimit command output. Is this HP-UX for PA-RISC or Itanium? Several of the above parameters are not ulimit values in HP-UX (pipe size, max user processes, virtual memory, max memory size)
It looks like ulimit from a Linux system. If so, you'll need to read the man pages for the shell for that user (man bash perhaps).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2005 01:58 AM
02-14-2005 01:58 AM
Re: user limit
As alredy suggested you can set ulimit parameters in .profile file.
1. ulimit -a
Display all configured values.
2. ulimit -c
Sets core file size
3. ulimit -d
Sets data seg size
4. ulimit -n
Sets Open Files
5. ulimit -s
Sets stack size
6. ulimit -u
Sets max user processes
7. ulimit -t
Sets cpu time
8. ulimit -v
Sets virtual memory
9. ulimit -p
Sets pipe size
ulimit -p
This will display current Pipe Size Configured,
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2005 01:43 PM
02-14-2005 01:43 PM
Re: user limit
as root, I can changed $HOME/.profile, (#vi /home/wmuser/.profile), but when I try to su - wmuser (#su - wmuser) , there are errors like this:
bash: ulimit: cannot modify limit: Not owner
bash: ulimit: cannot modify limit: Not owner
bash: ulimit: cannot modify limit: Not owner
when i try to change .profile as user, there is an error "permission denied" when i want to save file.anither error like this:
$ ulimit -d 2015436
sh: ulimit: The specified value exceeds the user's allowable limit.
$ ksh
$ ulimit -d 2015436
ksh: ulimit: exceeds allowable limit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2005 02:09 PM
02-14-2005 02:09 PM
Re: user limit
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2005 02:39 PM
02-14-2005 02:39 PM
Re: user limit
.profile that i changed is belongs to wmuser, user that i want to change.
#ls -l /home/wmuser
-r--r--r-- 1 wmuser wmgroup 523 Feb 15 10:16 .profile
Configure parameter :
maxdsiz 268435456 268435456 Static N/A M
maxdsiz_64bit 1073741824 1073741824 Static N/A M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 05:01 AM
02-15-2005 05:01 AM
Re: user limit
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 01:13 PM
02-15-2005 01:13 PM
Re: user limit
yesterday, i changed kernel configurations.
maxdsiz :2063806464
maxdsiz_64bit :2063806464
and output of ulimit -a:
core file size (blocks) 2097151
data seg size (kbytes) 2015436
file size (blocks) unlimited
max memory size (kbytes) unlimited
open files 2048
pipe size (512 bytes) 16
stack size (kbytes) 8192
cpu time (seconds) unlimited
max user processes 513
virtual memory (kbytes) unlimited
now, i have problem to change stack size to 81920.when I run "ulimit -s 81920" there are errors:
bash-2.04$ ulimit -s 81920
bash: ulimit: cannot modify limit: Not owner
bash-2.04$ ksh
$ ulimit -s 81920
ksh: ulimit: exceeds allowable limit
$ sh
$ ulimit -s 81920
sh: ulimit: The specified value exceeds the user's allowable limit.
what wrong bill ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 01:42 PM
02-15-2005 01:42 PM
Re: user limit
All of these requests sound like a program that can't run because memory isn't available. Virtually all memory problems for large programs are due to not understanding how a 32bit program is mapped. If you recompile the program as a 64bit program, these limitations go away. Without going into great details, 32bit programs have a maximum data area (regardless of higher ulimit values) of about 960mes, the stack is just under 79megs and shared memory is split among all other shared memory programs in the system. There are several compile options, as well as memory windows that can extend these limits. Have your programmers read the white papers in /usr/share/doc on proc_mgt and mem_mgt (11.00 and earlier systems)
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 02:50 PM
02-15-2005 02:50 PM
Re: user limit
I think we must change parameter maxssiz and maxssiz_64bit (max stack segment for 32 bit and 64 bit) and make to reboot.
thanks bill.