LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-01-2005, 04:45 AM   #1
limneos
LQ Newbie
 
Registered: May 2005
Posts: 5

Rep: Reputation: 0
useradd problem after 30 users


Hello.
I have this problem with useradd command , on a clean-installed Redhat 9.
I add users starting from pid 32007. (given automatically)
I use the useradd command as follows:

useradd -g ftp -d /home/download/public_html/username/ -s /sbin/nologin username

Everything works fine, until I add more than 30 users.
After I reach pid 32038, the user that is added has problems.
The first 30 users , when they are created they have in their home directory my /etc/skel files, which are these 3:

.bash_logout .bash_profile .bashrc

After the 30th user, they next users that are added have only this in their home:

.bash_logout

and also, the new users after no 30 have problems with setquota,
I cannot set any quota , it says : unable to set quota for 32038 : no such process. and in addition, I get a quota limit exceeded for each new user after 30.
Is there some limitation for the user number? any configuration file that sets any limits?

Thank you in advance for your help,

Limneos

Last edited by limneos; 06-01-2005 at 04:48 AM.
 
Old 06-01-2005, 04:57 AM   #2
sandeep_pal
LQ Newbie
 
Registered: May 2005
Location: Chandigarh, India
Posts: 3

Rep: Reputation: 0
Question

How come your UID came close to 32007, as you only added 30 users..
I think it starts from 500 or 501..

??? i think there is something else wrong..the automatically given uid...check for that..
 
Old 06-01-2005, 05:19 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Your starting UID number sounds way to high for normal users. I could be wrong, as I don't know that the start and end range is used for RH 9. On Mandrake it starts at 500. On SuSE it starts at 10000. So you see, these numbers can vary. What is the UID of the 'nobody' user.
Also, what is the base integer size of your processor? Your limit is approaching the max INT value for signed 32 bit numbers.

Does your system use PAM?
I believe that PAM and the shadow suite uses the /etc/login.defs file to read the legal range of UID values, UID_MIN and UID_MAX. Read through this file. There may be clues there. You may have a very narrow range between UID_MIN and UID_MAX.
 
Old 06-01-2005, 08:02 AM   #4
limneos
LQ Newbie
 
Registered: May 2005
Posts: 5

Original Poster
Rep: Reputation: 0
UIDs

my UID_MIN is 500 and UID_MAX is 60000
user nobody has uid 99
I forgot to mention, I'm using Cpanel....I think that's the reason why users start from that number.
because user 'cpanel ' has uid 32001:503 and after that, all new users take the next value.
However, there still isn't any limit in my /etc/login.defs as I mentioned above.
I do have PAM, yes....I'm also using a perl script that gives users automatically a password. (Authen::PAM )
but even if I do it manually, I still get the error after user 30.
as for the processor integer size, how can I see that?



Thank you all in advance for your assistance.
Whoever helps me solve this problem , I'll give 1000 gb space and 200 Gigs bandwidth as a "thank you"


Last edited by limneos; 06-01-2005 at 08:49 AM.
 
Old 06-01-2005, 10:09 AM   #5
eddiebaby1023
Member
 
Registered: May 2005
Posts: 378

Rep: Reputation: 33
Are there any clues in your system logs?
 
Old 06-02-2005, 03:27 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Is Cpanel similar to Webmin, but designed to manage groups of hosts?
Perhaps you need to concentrate on the cpanel settings. Since the system isn't following the login.defs MIN_UID and MAX_UID values, these settings must be made somewhere else when using Cpanel to configure your machine.
 
Old 06-02-2005, 05:42 AM   #7
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
Just trying to isolate the problem: Does it depend on the ID number, or adding a 30th user? I mean: What does it happen if you "resume" your script from the last success+1?
 
Old 06-04-2005, 08:36 AM   #8
limneos
LQ Newbie
 
Registered: May 2005
Posts: 5

Original Poster
Rep: Reputation: 0
UID

It happends after the 30th user, independently of the UID. I've tried adding users on another UID range (e.g. 501-531) , still the same.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
useradd problem ruben0076 Linux - Newbie 4 01-11-2005 12:28 PM
useradd for making ftp users?? djkoe Linux - Newbie 1 03-20-2004 08:07 AM
useradd problems - permission denied on /home/* for new users lowpro2k3 Red Hat 1 02-10-2004 12:18 AM
useradd Problem deepakjena_2003 Linux - Newbie 2 01-19-2004 09:21 AM
Problem with useradd wbheinkel Linux - Newbie 2 01-21-2002 06:56 AM


All times are GMT -5. The time now is 12:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration