Moving the Home dir to new server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 9/1/05, Todd Cary <todd@xxxxxxxxxxxxxxxxxx> wrote:
> I have a new Centos installation that has an empty /home dir and there
> are no users...just root.  I want to move the home directory from
> another server to the new one.  At this time the old /home directory has
> been tarred with "-prf".  That will keep permissions which could be a
> problem.

 I only have a few users on my machine. What I do is, use useradd or
what not to create the users in the same order as the UID. Copy over
the home dirs, moving the newlly created ones elsewhere. Then copy and
paste the crypted password in the shadow file.

 You could paste the users from /etc/passwd shadow and group if you
have a lot of users instead of creating the accounts.

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux