Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-17-2003, 09:10 AM   #1
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.

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

Rep: Reputation: 15

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.

Old 02-17-2003, 10:48 AM   #3
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

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

from the manpage:
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.


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


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 08:37 PM
Using Useradd spud Linux - Newbie 6 03-10-2005 04:50 PM
useradd script newuser455 Programming 4 01-28-2005 12:48 AM
useradd cyrush Linux - Distributions 3 01-21-2003 10:40 PM
useradd qdickens Linux - General 4 11-02-2001 03:41 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration