LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   automatically inherit parent folder permissions when copying files (https://www.linuxquestions.org/questions/linux-newbie-8/automatically-inherit-parent-folder-permissions-when-copying-files-654329/)

teixeira 07-08-2008 10:53 AM

automatically inherit parent folder permissions when copying files
 
Hello,

I've a windows machine backing up all night a couple of GB of information to a remote linux based machine via rsync and things works good, but i would like to know what/how can i do for the copied folders/files in the linux machine automatically inherit the parent folder permissions?


Thanks,
brgds,
Teixeira

trickykid 07-08-2008 11:37 AM

umask is probably what your looking for.

jamesapnic 07-08-2008 11:41 AM

I'm not sure that rsync has the ability to inherit them so to speak, but you can specify them manually presuming you know them, which I guess you do.

Add the --chmod, with such as ug+w as the arguments. It accepts standard chmod args.

teixeira 07-08-2008 12:21 PM

Thanks both, i'll try umask and --chmod switch in rsync.

Best regards,
Teixeira


All times are GMT -5. The time now is 04:33 AM.