Red Hat Bugzilla – Bug 3789
NFS file copy violations
Last modified: 2008-05-01 11:37:50 EDT
I have two essentially identical celeron servers "A" and
"B". From "A", I export the /home directory RO. From "B" I
mount A:/home to /test. Both "A" and "B" have similiar
directory structures, with matching subdirectories under
/home. I tried to cp -a one of the subdirectories from "A"
to "B". (cp -a /test/stuff/* /home/stuff) Due to improper
permissions on the "A" files, not all of the subdirectory
could be copied (there were additional files/directories in
the 'stuff' subdirectory, and those permissions didn't allow
other r/x access). The copy was taking a long time, so I
control-C'd to stop it. When I then looked at the files in
"B", I saw that not only did the files I wanted from "A" get
copied, but also several parts of "B"s filesystem!
What I mean is, besides copying the files from "A", I also
got substantial parts of "B"s /usr, /boot and /home to copy
under this directory!!!! If I hadn't stopped the process I
might have recopied my entire machine into this directory!!!
I executed the cp command as root, but this seems like a
major problem to me!
I'm changing component to knfsd.
Can you send us the listing of /test/stuff/* ?
and does the extra copying happen when you do
(cd /test/stuff; find . | cpio -dvpm /home/stuff)
Closed due to lack of input.