LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   permissions of files created by rsync from windows share (https://www.linuxquestions.org/questions/linux-newbie-8/permissions-of-files-created-by-rsync-from-windows-share-750882/)

txm123 08-28-2009 10:07 AM

permissions of files created by rsync from windows share
 
I'm mounting my windows share on my linux backup server and using rsync to backup the files. But the files are created with permission

rwxrwSrwx

and I cannot see them when I'm browsing my samba server. If I set the permission to chmod 700 then I can see the files. I was wondering if it is possible to just write the files with 700 when using rsync?

neonsignal 08-28-2009 03:44 PM

You can supply the flag "--chmod=u=rwx,go=" to the rsync command. Of course, this means that you will lose all the NTFS permissions in the backup.

txm123 08-28-2009 04:25 PM

Quote:

Originally Posted by neonsignal (Post 3661281)
You can supply the flag "--chmod=u=rwx,go=" to the rsync command. Of course, this means that you will lose all the NTFS permissions in the backup.

Thank you! you solved my problem. I don't have any NTFS permissions so its ok.
:hattip:


All times are GMT -5. The time now is 01:09 AM.