How To Add New Username Using Default Password with OpenSSL in SuSE Linux Enterprise Server

Posted by Planet Malaysia on April 15, 2008

advertisement

How To Add New Username Using Default Password with OpenSSL in SuSE Linux Enterprise Server

Creating a single or two username in SLES is simple job but creating 100 or 1000 new usernames in Linux using manual command line would be pain.

I would like to share about using OpenSSL for creating new username in SLES and probably work for other Linux distro as well.

#Create a default password using OpenSSL
openssl passwd -crypt mysecretpassword

#Example of password output
D4KtJYzzCtz3x

#Create a new username(e.g. myusername1, 2 & 3using default password)
useradd -m myusername1 -d /home/myusername1 -p D4KtJYzzCtz3x
useradd -m myusername2 -d /home/myusername2 -p D4KtJYzzCtz3x
useradd -m myusername3 -d /home/myusername3 -p D4KtJYzzCtz3x


Create add user script and add the example as above. Work Smart!

Possibly Related Posts:


Comments

Leave a Reply




Planet Malaysia

  • Follow us on Twitter


  • web www.planetmy.com