LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-06-2004, 04:12 AM   #1
turbofisch
LQ Newbie
 
Registered: Sep 2002
Location: Bochum
Distribution: RedHat 7.3
Posts: 7

Rep: Reputation: 0
useradd: unknown group


When I'm using 'useradd -g users -m dummy' I get the following error message:
'useradd: unknown group 100'.
In my /etc/group I have 'users:x:100:' and 'newgrp users' allows me to enter the group. So somehow the group exists but not for 'useradd'.
Any ideas?
 
Old 04-06-2004, 04:17 AM   #2
dominant
Member
 
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
you forgot the usenrmame at the end of the command useradd

useradd -g users -m dummy (username)
 
Old 04-06-2004, 05:01 AM   #3
turbofisch
LQ Newbie
 
Registered: Sep 2002
Location: Bochum
Distribution: RedHat 7.3
Posts: 7

Original Poster
Rep: Reputation: 0
'useradd -g users -m dummy'
seems to be correct as
'useradd -g users -m dummy dummy'
doesn't solve the 'unknown group 100' problem. Instead it lists the options for the useradd-command.
 
Old 04-06-2004, 05:31 AM   #4
dominant
Member
 
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
try
#useradd -g users -m /home/dummy dummy
 
Old 04-06-2004, 06:19 AM   #5
turbofisch
LQ Newbie
 
Registered: Sep 2002
Location: Bochum
Distribution: RedHat 7.3
Posts: 7

Original Poster
Rep: Reputation: 0
The /etc/defaults/useradd was created in a WinXP using Notepad. Writing a new one using Emacs did the trick! I had this problem before, DOS and Linux use different line feeds...
Thanks for the fast reply!
 
  


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
what's the difference between main group and other group? hongxing Linux - Software 1 11-14-2005 06:40 AM
well, there's info written inside /etc/group. accidentally del /etc/group in RedHat9 karmakid Red Hat 1 07-27-2005 10:27 PM
"Warning: unknown group floppy" rgiggs Slackware 8 08-29-2004 03:55 AM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM
[alert] (22) Invalid argument : setgid : unable to set group id to Group 4294967295 Niraj Linux - Networking 1 12-13-2001 06:58 AM


All times are GMT -5. The time now is 10:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration