< Browse > Home / Programming / Blog article: Perl – Migrating User Accounts From Old To New Linux Distribution

| RSS

Perl – Migrating User Accounts From Old To New Linux Distribution

October 22nd, 2008 | 6 Comments | Posted in Programming

Migrating user accounts can be very troublesome when you have a large numbers of users. So, is always recommended to deploy active directory or LDAP to have a centralized authentication system.

If your organization don’t have AD or LDAP and have large portion of users needed to transfer from 1 to another server. Don’t worry, instead of manually key in all the records 1-by-1, there’s always a faster way to achieve this kind of process by using script.

I have written 2 Perl scripts to perform the migration.

Steps:

1)  Download migrate_passwd.pl in the old server and run it

./migrate_passwd.pl /etc/passwd /tmp/accounts.pm

2)  Then copy the /tmp/accounts.pm to the new server (put this file into the same directory of serversetup.pl)

3) Download serversetup.pl in the new server and run it

./serversetup.pl

4) Done

Related Posts
Leave a Reply 668 views, 2 so far today |
Related Posts
  • http://lockgoh.blogspot.com Lock

    you are good programmer, and thanks for sharing, but i don't really need it~

    hahaha

  • http://lockgoh.blogspot.com Lock

    you are good programmer, and thanks for sharing, but i don't really need it~

    hahaha

  • http://blog.chenhow.net chenhow

    Who knows 1 day you might need it, haha..

  • http://blog.chenhow.net chenhow

    Who knows 1 day you might need it, haha..

  • http://lockgoh.blogspot.com Lock

    you are good programmer, and thanks for sharing, but i don't really need it~

    hahaha

  • http://blog.chenhow.net chenhow

    Who knows 1 day you might need it, haha..