[lug] Moving Users

Andrew Diederich andrew at NETdelivery.com
Mon Nov 20 08:22:28 MST 2000

> From: Ian Hall-Beyer [mailto:manuka at nerdherd.net]
> On Sat, 18 Nov 2000, MauroMedia wrote:
> > What files do I need to copy to move users from one RedHat system to
> > another?
> > I would like to keep passwords the same.
> Generally speaking, their home directory and /etc/passwd and 
> /etc/shadow
> entries, unless you're using a centralized authentication 
> scheme like NIS
> or LDAP.
> -Ian

A popular way to move users' home dirs from /home to /newhome:

find . -print | cpio -dumpv /newhome

To keep the files times, ownership, etc. correct.  Make sure you start this 
from /home, and /newhome would be the new mounted harddrive, NFS mount, etc.

Andrew Diederich

More information about the LUG mailing list