LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-25-2003, 02:34 PM   #1
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Rep: Reputation: 15
adding users


i have been adding users through ssh and the command prompt. i have added about 80 users and need to add a few more. when i try to add a user i get the following error:

useradd : unknown gid 100

does anybody know what this means?

i am having trouble doing other functions with this user.
 
Old 02-25-2003, 02:44 PM   #2
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
gid, isn't that group id? Are you trying to add them to a non-existing group?
 
Old 02-25-2003, 02:49 PM   #3
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
what is happening is that when i add the users it automatically creates a group with their own name.

but now it isnt doing it. it is almost like i cant add anymore groups

i am not sure what to do as i need each person to be in their own group for a private drive for themselves.
 
Old 02-26-2003, 09:54 AM   #4
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
[oops]

Bleh.. ignore me, talking out of my bottom...

[/oops]

Slick.

Last edited by SlickWilly; 02-26-2003 at 09:58 AM.
 
Old 02-26-2003, 10:13 AM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Did you try something like:

useradd -m -c "Fake User" fake

??? Perhaps you are trying to add a user thats name is an existing group name. Useradd may be trying to create the group fake and it may already exist. Also check your /etc/login.defs file. See what the default behaviour of useradd is.

How are you using the useradd command exactly?
 
Old 02-26-2003, 10:14 AM   #6
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
i am just using it this way

useradd username
 
Old 02-26-2003, 10:24 AM   #7
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Then check your /etc/login.defs file. It will tell you how you are really using it. The thing that is strange here is the fact that you've been able to add 80 users and now all of a sudden you can't add anymore. I know I am being a pain here asking all these questions but here comes a few more:

Have you tried adding some different users?(i.e. useradd john. If that doesn't work useradd mary.)

Is this only happening for one specific user or every user you are trying to add?
 
Old 02-26-2003, 10:31 AM   #8
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
when i tried to add a new user it started telling me that the gid 100 did not exist.

it added the new user and put them into somebody elses group.

then when i tried to add the user to the users group it wouldnt let me.

i have bigger problems though. i still am having problems with my gdm.conf file. and i know all of this relates to each other because everything worked fine until i started running into these problems with adding the users.
 
Old 02-26-2003, 10:40 AM   #9
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
i looked throught that file and i only see that the it tells me to

create_home = yes
 
Old 02-26-2003, 11:08 AM   #10
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Well the gdm.conf file deals with X so I don't see the connection with adding users from a shell and a misconfigured gdm.conf file. Of course I could be wrong.

Also check your /etc/group file. Make sure there is a group called users and that it's gid is 100.

grep users /etc/group

You should get this:

users:x:100:
 
Old 02-26-2003, 12:07 PM   #11
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
yes there is a user group and the id is 100. there also is a group called gdm, but the error i am getting is that there is no gdm group. that is why i am so confused
 
Old 02-26-2003, 12:11 PM   #12
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
do me a favour and type :

wc -l /etc/group

Let me know what the number is.?

Slick.
 
Old 02-26-2003, 12:36 PM   #13
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
132 /etc/group
 
Old 02-26-2003, 12:40 PM   #14
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
That is confusing. Why is it looking for the gdm group when adding users?

Slick what are you going after here with this word count?
 
Old 02-26-2003, 12:45 PM   #15
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
no it is looking for the gdm group when loading

when i try to load the users it is telling me there is no gid 100, which is the users group.

both the users and gdm groups do exist
 
  


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
adding new users Brian Du Preez Linux - Newbie 1 10-04-2005 12:33 PM
Adding New Users guygriffiths Linux - General 4 10-13-2003 10:11 AM
Adding many users? ricardocastro Programming 4 02-19-2002 01:22 PM
Adding new users Fried Linux - Newbie 4 09-24-2001 10:37 AM
adding Users hextex Linux - Newbie 5 06-08-2001 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:17 PM.

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