Paul Slootman wrote:
> On Sun 24 Jun 2007, Bas van Schaik wrote:
>
>   
>> May users send their backups to my central rsync server and I'm using
>> the 'incoming chmod' option to correct permissions which are too
>> restrictive. This way, I can have a non-privileged user maintaining the
>> backups by using the rsyncd.conf 'uid' option.
>>
>> However, sometimes directories get rsynced to my server without having
>> the 'executable by user'-bit set, rendering the contents of the
>> directory unusable for my non-privileged user. Of course I can set the
>> incoming chmod to 'u+rwx', but this also applies for all incoming files
>> and thus will make all files executable which is not what I want.
>>
>> I think it's a good idea to split up the 'incoming chmod' option:
>> 'incoming files chmod' and 'incoming dirs chmod'. This way, its possible
>> to configure:
>>
>>  incoming files chmod = u+rw
>>  incoming dirs chmod = u+rwx
>>     
>
> From the manpage:
>
>     In  addition  to  the  normal  parsing  rules  specified  in the
>     chmod(1) manpage, you can specify an item that should only apply
>     to  a  directory  by prefixing it with a 'D', or specify an item
>     that should only apply to a file by prefixing  it  with  a  'F'.
>     For example:
>
>     --chmod=Dg+s,ug+w,Fo-w,+X
>   
Wow, why didn't I see that?

But wait... I can't find such a line in my manpages (clean Debian Etch
install):
> $ dpkg -l | grep rsync
> ii  rsync                           
> 2.6.9-2                             fast remote file copy program
> (like rcp)

My version seems to be the latest (packages.debian.org only mentions -3
in testing/unstable and ~pre-3-1 in experimental), maybe this feature
only exists in the experimental version 3? Or is the manpage shipped
with Etch out of date? Or maybe I just didn't drink enough coffee for
today... Please enlight me!

  -- Bas



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to