Operating System - Linux
1830882 Members
2349 Online
110017 Solutions
New Discussion

user creation in multiple server

 
joinsiva
Advisor

user creation in multiple server

Hi all,

I am facing a problem in password setting, when i create a user in multiple server through script, can somebody help in setting the password through script ?.

thanks
siva
2 REPLIES 2
joinsiva
Advisor

Re: user creation in multiple server

Hi..

All my servers are running linux as os.

thanks
siva
Kodjo Agbenu
Honored Contributor

Re: user creation in multiple server

Hi Siva,

Supposing that we create a file named "mylist" with user and password list :

user1 pass1
user2 pass2
user3 pass3
...
...

I would use secure shell like this :

cat mylist | while read user pass; do ssh -l root "useradd -p $pass $user"

Good lcuk.
Kodjo



Learn and explain...