Subj : Re: Copy files without changing ownership and permissions To : comp.os.linux,comp.os.linux.redhat,linux.redhat From : agreene Date : Fri Nov 26 2004 10:49 pm thegodorange wrote in message news:... > Ross wrote: > > Hi there, > > My Linux file server has an ext3 partition for user's home directories. I > > have just added a new and big ext3 partition. > > I (root) would like to copy (cp) all users' files to the new partition. But > > any files copied to the partition will change their ownership to root, and > > permission to 755. > > How can I keep their ownership and permissions? > > Thanks in advance, > > Ross > > > > > look into the cp -a option > for example, cp -a /home /newhome The problem I have with cp is that you don't get hidden files/dirs. tar is intended to do what is needed here. -- Tony .