Bug 3789

Summary: NFS file copy violations
Product: [Retired] Red Hat Linux Reporter: elsenbeck
Component: knfsdAssignee: Cristian Gafton <gafton>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: 6.0Keywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-10-04 16:43:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description elsenbeck 1999-06-29 03:20:33 UTC
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!

Comment 1 Jeff Johnson 1999-06-30 23:18:59 UTC
I'm changing component to knfsd.

Comment 2 Zach Brown 1999-07-13 18:30:59 UTC
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)
?

Comment 3 Jeff Johnson 2000-07-25 19:40:58 UTC
Closed due to lack of input.