[opensuse] Any rsync experts out there?
The Scenario Every week, Alice sends Bob some files using rsync into a shared directory on Bob's computer. Bob has setup the necessary modules in his rsyncd.conf file to look something like this [artists] uid = bob gid = music path = /home/bob/music/artists use chroot = true list = false read only = false secrets file = /etc/rsyncd.secrets auth users = bob,alice Both Bob and Alice are members of the group music on Bob's machine, where Alice is also a user. From time to time, Alice would like to ssh into Bob's machine in order to do some housekeeping, necessary to keep both ends in sync. The Problem Any files that are transferred from Alice to Bob end up being owned by bob:music (not a problem) but with the following permissions -rw-r--r-- which means that Alice can't rename them, etc. I had expected that they would be readable and writable by all members of the music group. Is there an option that Bob needs to add to his rsyncd.conf modules to get this to happen, or are we missing something somewhere else? Thanks, Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.25-0.1-default, KDE 4.2.4 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Every week, Alice sends Bob some files using rsync into a shared directory on Bob's computer. Bob has setup the necessary modules in his rsyncd.conf file to Any files that are transferred from Alice to Bob end up being owned by bob:music (not a problem) but with the following permissions -rw-r--r--
What are the permissions on the origin file? I believe rsync just duplicates the source permissions on the target. Maybe you just need to specify the "--acls" option and make sure the permissions are correct int the first place. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi Adam, On Sunday 02 August 2009 15:10:46 Adam Tauno Williams wrote:
Every week, Alice sends Bob some files using rsync into a shared directory on Bob's computer. Bob has setup the necessary modules in his rsyncd.conf file to Any files that are transferred from Alice to Bob end up being owned by bob:music (not a problem) but with the following permissions -rw-r--r--
What are the permissions on the origin file? I believe rsync just duplicates the source permissions on the target. Maybe you just need to specify the "--acls" option and make sure the permissions are correct int the first place.
I'll have to ask Alice what permissions she has set, but meanwhile I'm trying David Bolt's suggestion. Many thanks, Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.25-0.1-default, KDE 4.2.4 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2 Aug 2009, Bob Williams wrote:- <snip>
The Problem
Any files that are transferred from Alice to Bob end up being owned by bob:music (not a problem) but with the following permissions
-rw-r--r--
which means that Alice can't rename them, etc. I had expected that they would be readable and writable by all members of the music group. Is there an option that Bob needs to add to his rsyncd.conf modules to get this to happen, or are we missing something somewhere else?
Add the following to the [artists] module: incoming chmod = Dg+w,Fg+w and the files and directories received will be set as group-writable. The complementary option "outgoing chmod" lets you send files and directories with a different permissions to what they are stored on the server. Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s openSUSE 10.3 32b | openSUSE 11.0 32b | | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | RISC OS 3.6 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi David, On Sunday 02 August 2009 15:39:30 David Bolt wrote:
On Sun, 2 Aug 2009, Bob Williams wrote:-
<snip>
The Problem
Any files that are transferred from Alice to Bob end up being owned by bob:music (not a problem) but with the following permissions
-rw-r--r--
which means that Alice can't rename them, etc. I had expected that they would be readable and writable by all members of the music group. Is there an option that Bob needs to add to his rsyncd.conf modules to get this to happen, or are we missing something somewhere else?
Add the following to the [artists] module:
incoming chmod = Dg+w,Fg+w
and the files and directories received will be set as group-writable.
The complementary option "outgoing chmod" lets you send files and directories with a different permissions to what they are stored on the server.
Many thanks. I'll try that. Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.25-0.1-default, KDE 4.2.4 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Adam Tauno Williams
-
Bob Williams
-
David Bolt