Re: Copy files without changing ownership and permissions
From: Anthony E. Greene (agreene_at_pobox.com)
Date: 11/27/04
- Previous message: Remove the letters in all caps\: "More questions about cups, escputils and udev"
- In reply to: thegodorange: "Re: Copy files without changing ownership and permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Nov 2004 22:49:12 -0800
thegodorange <orange@comcast.net> wrote in message news:<Aovnd.360335$wV.249506@attbi_s54>...
> 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
- Previous message: Remove the letters in all caps\: "More questions about cups, escputils and udev"
- In reply to: thegodorange: "Re: Copy files without changing ownership and permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|