On Thursday 11 July 2002 13:50, you wrote:
> Guys,
>
>       I migrated 400+ users from an old mail server to a new mailserver.  Wrote
> a script to migrate all the users and used --stdin feature of
> passwd.  Weird thing is, the first batch of users i migrated get
> authenticated with any word as the password... i then rewrote the script
> for some reason before i migrated the last batch and the last batch doesn't
> behave the same way.  Now i'm trying to do it manually becuase i think this
> could be a great feature should anyone wants to migrate the users from an
> old box to the new box without figuring out how to sync the password from
> the old box to the new one then let the user change their own password
> through somesort. Anybody experienced this? How do it manually? Ahehehhe...
> weird! {=)
>
> ---
> Cheers,
>
> Reynald I. Ngo

hi there,

i'm assuming you're using /etc/passwd 
you can try the following steps:

on old server
=========
1. unshadow passwd and group
pwunconv
grpunconv

2. copy your old passwd and group files to your new server,
rename them to passwd.old and group.old to prevent confusion.

on new server
==========
3. unshadow your passwords and groups
pwunconv
grpunconv

4. edit passwd file (make backups before editing!)
vipw

5. in vipw go to the bottom of the file,
use the "r" command to read-in (import) the contents of passwd.old,
then delete duplicate entries like root, bin, daemon, etc.
save the file.

6. repeat steps 4 and 5 to edit group file
using vigr to import group.old

7. switch to shadowed passwd and group
pwconv
grpconv

8. verify integrity
pwck
grpck

good luck!
-eric
-- 
�.--. �Enrique D. Rosel II
( () ) Q Linux Solutions, Inc.
�`--\\ A Philippine Open Source Solutions Co. �http://www.q-linux.com/
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to