[Ilugc] Remote User Account Creation

  • From: knura9@xxxxxxxxx (Arun Khan)
  • Date: Thu Feb 25 10:58:35 2010

On Wed, Feb 24, 2010 at 6:27 PM, Ramesh Jothimani
<linuxrockers@xxxxxxxxx> wrote:

Sorry I did not understand what is in reply! Is there some commands to
create user accounts in remote machines?

I would suggest that you get your basic system admin fundas first and
then try the stuff that you are trying to do.

LDAP is complex and requires several config files to be set correctly.
 From your query I am venturing that LDAP Auth is not the solution for
you.

Please read up some on bash scripting.  Assuming that you have "root"
access on all machine you can write a simple script to create the
logins on all systems like the following

#!/bin/bash

for x in user1 user2 user3
do
          for y in host1 host2 host3 host4
          do
                    ssh root@$y 'useradd -m $x'
          done
done

I have given you the frame work, you need to expand on the above to
create the passwords etc.

HTH
-- Arun

Other related posts: