LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-28-2009, 11:07 AM   #1
txm123
LQ Newbie
 
Registered: Nov 2004
Posts: 28

Rep: Reputation: 15
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?
 
Old 08-28-2009, 04:44 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Stretch (Fluxbox WM)
Posts: 1,389
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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.
 
Old 08-28-2009, 05:25 PM   #3
txm123
LQ Newbie
 
Registered: Nov 2004
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by neonsignal View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to delete *~ files created by rsync cyrilng Linux - Software 5 06-23-2009 02:04 AM
creating files from windows on a samba share gives read-only permissions. lievendp Linux - General 5 12-17-2008 11:55 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 03:49 PM
permissions for newly created files dialbat Linux - General 2 10-04-2004 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration