LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-17-2003, 08:10 AM   #1
jcornel7
LQ Newbie
 
Registered: Feb 2003
Location: Michigan
Distribution: Red Hat 8
Posts: 16

Rep: Reputation: 0
Angry Useradd Script


I need some help! I need to add like 45 users. I have the usernames in a text file.

I know how to use useradd (at least I thought I did)

What is the proper context to add a user called alincoln with a password of address?

useradd alincoln -p address

That command didnt work.

If anyone has a very simple scipt I would appreciate that as well.

Thanks!
 
Old 02-17-2003, 09:12 AM   #2
emmanuelmathew
Member
 
Registered: Feb 2003
Location: Kottayam, Kerala, India
Distribution: Redhat 7.1 (2.4.2-2)
Posts: 54

Rep: Reputation: 15
Hai,

Just try adduser. This will have an interactive feed back. I did not test this. But my senior told me this. But I think its just worth to give a try. Hope it will help you.

Bye.
 
Old 02-17-2003, 09:48 AM   #3
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
for non-interactive:

the command "newusers" is what you're prolly looking for. It's available in the Debian "passwd" package
http://packages.debian.org/stable/base/passwd.html

but should also be around the net somewhere for other distros.

from the manpage:
Quote:
DESCRIPTION
newusers reads a file of user name and cleartext password pairs and uses this information to update a group of existing users or to create new users. Each line is in the same format as the standard password file (see passwd(5)) with the following exceptions.

<snip>

Last edited by cuckoopint; 02-17-2003 at 09:51 AM.
 
  


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 jerryluis Fedora 9 03-27-2005 07:37 PM
Using Useradd spud Linux - Newbie 6 03-10-2005 03:50 PM
useradd script newuser455 Programming 4 01-27-2005 11:48 PM
useradd cyrush Linux - Distributions 3 01-21-2003 09:40 PM
useradd qdickens Linux - General 4 11-02-2001 02:41 PM

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

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