Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add users on Linux Server - How to

Status
Not open for further replies.

techangus

IS-IT--Management
Feb 7, 2002
6
CA
I was given a list with first and last names of 50 users. How to find a quick way to implement those users on my Linux server? Thanks in advance!!
 
Here what I thought, should I write a script or any one command line can add all users to my server? if so, what is script included?
 
Yes, you might want to use a script to add the users. 50 users really isn't that many though. I don't know how fast you type, but I can add 50 users to the system using the basic 'useradd' command in under 10 minutes easy.

For the passwords, you can use the 'chpasswd' command to change passwords in bulk. To use the utility, create a text file with one entry per line. Each line consists of the username and the new password, separated by a colon…

cat > passwordchanges.txt
chris:mypass11
jessica:pass828
chpasswd < passwordchanges.txt


ChrisP


 
Techangus, I gave a possible answer to this question in Thread54-384357

Strange how the number of users is no longer 1000 and the time to add them seems to have increased from the 1 minute in that thread ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top