LinuxQuestions.org
Review your favorite Linux distribution.
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 01-20-2003, 02:11 AM   #1
80s
Member
 
Registered: Dec 2002
Location: Pretoria South Africa
Distribution: Mandrake 8.1 & 9 Debian Woody
Posts: 41

Rep: Reputation: 15
newusersers command ????


#Please advise me on the use on the newusers command.
#i use the following format.
alan:x:0:0:65534:Alan Machin:/home/alan/:/bin/bash
#but i get the following error
line 1 :to long
error detected, changes ingored..
#i have also tried just a name and i get the same error.

Many Thank
 
Old 01-20-2003, 02:19 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
useradd or adduser, I prefer adduser just because it prompts me on each portion.

Is this what you are asking? Or am I confused?

Cool
 
Old 01-20-2003, 02:35 AM   #3
80s
Member
 
Registered: Dec 2002
Location: Pretoria South Africa
Distribution: Mandrake 8.1 & 9 Debian Woody
Posts: 41

Original Poster
Rep: Reputation: 15
newusers

newuser is a command that reads info from a text file in the same format a passwd file.

I need to be able to create about 500 users in one go. I can generate in file in passwd format from my data base..

but when i tested it with a single line as above i got the mentioned error ..


Thanks for your reply.
 
Old 01-20-2003, 12:31 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Ok, so I tried reading around about it, I don't really see alot saying one way or the other, but maybe the space in the User's name is causing the error?

1 other thing I noticed looking at it:
alan:x:0:0:65534:Alan Machin:/home/alan/:/bin/bash

You have 0:0:65534

Well for 1 I think 0:0 is root, so I think you'd be giving this person root access, and 2....

Ahh, just tried it on my box, yeah it looks like that's your problem maybe. You've got too many entries. 0:0 will set both user/group as root's gid/uid I am thinking you maybe want something else, either way, you've got too many entries there for user/group so look at this part:
0:0:65534

And either remove a 0 to take away the root gid/uid or remove the 65534 to take away the "extra" gid.

HTH

Cool
 
Old 01-21-2003, 12:44 AM   #5
80s
Member
 
Registered: Dec 2002
Location: Pretoria South Africa
Distribution: Mandrake 8.1 & 9 Debian Woody
Posts: 41

Original Poster
Rep: Reputation: 15
ifound the problem.. cause i was only using one line to test i wasn't pressing enter...


needs to see a caridge return to recognise the end of the line
 
Old 01-21-2003, 12:50 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Good deal Glad you found that

Cool
 
  


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
Why after start of a command the invitation for input next command has not appeared. ukrainet Linux - General 3 06-24-2005 08:16 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 07:14 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 10:48 AM

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

All times are GMT -5. The time now is 11:54 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