Christopher Russell wrote:

I am trying to copy /home/user from one RH9 machine to another RH9
machine, using a CDR; but the files and directories lose their
permissions. How should this be done properly, please?

WHAT I'VE DONE SO FAR:
I used a CDR, and syntax from RH8 Bible by Negus, p471.

mkisofs -o /var/tmp/user.cd /home/user
cdrecord -v speed=10 dev=0,0,0 -data /var/tmp/user.cd

WHAT HAPPENS:
On copying the files and directories into the new /home/user directory,
icons are labeled as user not having necessary permissions. e.g.,
/evolution has changed from 700 to 555, /stuff has changed from 755 to
555, and a .html file has changed from 664 to 555.

WHAT I THINK THE PROBLEM IS:
A CD is an archive media, and so it's something in the way I made the
CD,-

but what should have been the way to do this, please?

Thanks in advance,
Chris



Use a tar archive - you can specify it to keep permissions. You're correct - writing onto CD kills some permissions due to the way ISO/Joliet read-only is applied to the files.


Same happens when I use windows to back up a directory shared using samba - when the modified bit is set during the backup, the linux file loses it's linux permissions. Highly annoying.

'man tar' should give you what you need.

Regards,
Ed.



--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to