Re: How to preserve permissions when copying to a root squishing NFS mounted dir?
From: mgrd (mgrd_at_gmx.net)
Date: 03/22/04
- Next message: news.comcast.giganews.com: "Using FIND command to locate files by 'mtime' - Directories -vs- files"
- Previous message: Jack Ryan: "How to preserve permissions when copying to a root squishing NFS mounted dir?"
- In reply to: Jack Ryan: "How to preserve permissions when copying to a root squishing NFS mounted dir?"
- Next in thread: Bill Marcum: "Re: How to preserve permissions when copying to a root squishing NFS mounted dir?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 22 Mar 2004 18:49:25 +0100
Jack Ryan wrote:
> I have a NAS (Snap 4500) which I mount on my /mnt/nas (in a RedHat 9.0
> box) in order to backup files:
>
> # mount -t nfs snap4500:/SHARE1 /mnt/nas
>
> The problem arises when I try to backup files as root. This makes my
> files to get squished to nfsnobody:nfsnobody
>
> # cp -pR <source> /mnt/nas
> or
> # cd <source>;tar cf - . | (cd /mnt/nas;tar xfBp - )
>
> I've tried the getfacl/setfacl game and didn't work, also I don't want
> to create tar compressed files or similar. How could I preserve the
> permissions and specially the SGID?
to preserve the permissions use find(1) piped to cpio(1):
% cd <source-directory>
% find . -depth -print | cpio -pudm <dest-directory>
re. the SGID:
not sure if I got you, but:
you may check the numeric id (`ls -ln') of the owner and compare this id
to the id on the other host.
- Next message: news.comcast.giganews.com: "Using FIND command to locate files by 'mtime' - Directories -vs- files"
- Previous message: Jack Ryan: "How to preserve permissions when copying to a root squishing NFS mounted dir?"
- In reply to: Jack Ryan: "How to preserve permissions when copying to a root squishing NFS mounted dir?"
- Next in thread: Bill Marcum: "Re: How to preserve permissions when copying to a root squishing NFS mounted dir?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|