LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-08-2008, 10:53 AM   #1
teixeira
LQ Newbie
 
Registered: May 2008
Location: Portugal
Distribution: debian/ubuntu/opensuse
Posts: 3

Rep: Reputation: 0
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
 
Old 07-08-2008, 11:37 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
umask is probably what your looking for.
 
Old 07-08-2008, 11:41 AM   #3
jamesapnic
Member
 
Registered: Jul 2008
Posts: 40

Rep: Reputation: 15
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.
 
Old 07-08-2008, 12:21 PM   #4
teixeira
LQ Newbie
 
Registered: May 2008
Location: Portugal
Distribution: debian/ubuntu/opensuse
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks both, i'll try umask and --chmod switch in rsync.

Best regards,
Teixeira
 
  


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
Automatically set permissions of new files created within a specific folder Lorian Linux - Desktop 2 03-03-2007 03:17 PM
How to automatically move files from one folder into another folder? xmrkite Linux - Software 6 11-05-2006 10:39 AM
How to inherit permissions thejasondean Linux - General 8 08-31-2006 02:18 PM
Samba - Inherit Permissions from Parent Directory bence8810 Linux - Software 6 08-03-2006 06:33 AM
FOLDER permissions change automatically Echo Kilo Linux - Newbie 5 08-21-2005 03:09 AM

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

All times are GMT -5. The time now is 05:40 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
Open Source Consulting | Domain Registration