LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2011, 12:00 AM   #1
GeWa
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
max user processes question/problemm


Hello.
First i have a question.
When i do the following with logged in with root:
Code:
su user1
ulimit -a
i get

Code:
core file size          (blocks, -c) 200000
data seg size           (kbytes, -d) 200000
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 8027
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) 200000
open files                      (-n) 100
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 100
virtual memory          (kbytes, -v) 200000
file locks                      (-x) unlimited
When i login with user1 and do ulimit -a
i get
Code:
core file size          (blocks, -c) 200000
data seg size           (kbytes, -d) 200000
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 8027
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) 200000
open files                      (-n) 100
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 20
virtual memory          (kbytes, -v) 200000
file locks                      (-x) unlimited
Why is the max user processes different for the same user?
And how can i change this. I need for this user more then 20 processes...

I hope you can explain and help me with it.
 
Old 04-13-2011, 12:17 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
That's because
Code:
su user
logs you in as target user, but with orig/src user's env.
To get target user's env, you need
Code:
su - user

http://linux.die.net/man/1/su
 
Old 04-13-2011, 12:29 AM   #3
GeWa
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Yes indeed. I see now that the max users processes are the samen.
I both cases they are 20.

But how can i make them higher?


Edit: Problem is solved. It was a cPanel problemm. I had to disable fork shell protection

Last edited by GeWa; 04-14-2011 at 03:41 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
max processes run in Linux pradiptart Linux - General 3 07-23-2010 09:57 AM
max processes run in linux pradiptart Linux - General 7 07-23-2010 09:17 AM
ulimit: max user processes: cannot modify limit: Operation not permitted farnaw4u Linux - Newbie 3 04-21-2008 06:32 AM
I need to set a max number of processes for users zahadumy Linux - Software 1 11-15-2005 12:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration