< 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 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

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • MySpace
  • Twitter
Related Posts
Follow Discussion

View Comments to “Perl – Migrating User Accounts From Old To New Linux Distribution”

  1. Lock Says:

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

    hahaha

  2. Lock Says:

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

    hahaha

  3. chenhow Says:

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

  4. chenhow Says:

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

  5. Lock Says:

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

    hahaha

  6. chenhow Says:

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

Leave a Reply

blog comments powered by Disqus

World Vision / WWF

World Vision
One Life - Do Something
I support WWF

Subscribe

Follow Me Twitter Follow Me Friendfeed Subscribe RSS to receive content updates in your favorate reader
Follow Me Facebook Follow Me LinkedIn
RSS Subscribe in a reader
RSS Or, subscribe via email:
     

Recent Post

    • [Centos] Kickstart (Unattended) Linux OS installation
    • Singtel Iphone 4 Launching Date
    • Create Bootable USB Drive For Centos Installation
    • PC Server For Research
    • I’m Back Again

Popular Post