Hello. I have a problem with cp (GNU fileutils, 3.16, Linux):

mkisofs makes CDROMs with reasonable UID/GUID and permissions. Those
permissions are naturally 555 (no write permission). Now, "cp -r -P"
fails because it can't make the directories.

Try with "cp -r -P /cdrom/dir/subdir1 /cdrom/dir/subdir2" where "subdir2"
fails because "dir" has wrong permissions.

A possible solution could be in changing directory permissions to what
they are on the CDROM only after the copying is completed -- this is good
solution. Another solution would be to add a permission mask which forces
masked bits to be turned on (cp -r -P -m 200) -- this would be useful for
me because I use chmod -R 700 after copying.

Regards,

Juhana

Reply via email to