On 15 Mar 2001, pete lindsay <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Thanks very much for your reply.
> 
>  I am running rsync daemon on the server. I notice that the owner of rsync
> is root.
> 
>  rsync daemon is running on the server as owned by the root user. The files
> I want are all owned by the users tags.
> 
> I note that unless the files have global read permissions, my rsync run wont
> get them.

If rsyncd is running as root, then by default it changes to
nobody/nobody before accepting a connection.  This explains why only
your files need to be publicly readable to be retrieved.

What you probably want to do is change the rsyncd.conf to specify the
user and group who should be used for that module.  For security
reasons this should not be root unless it's absolutely necessary.  For
example

  [mymodule]
    path = whatever
    uid = tags
    gid = staff

You can set different users for each module.  Note that the parameter
name is 'uid' even if you're actually specifying a username rather
than a uid.

Hope that helps,
-- 
Martin Pool, Human Resource
Linuxcare. Inc.   +61 2 6262 8990
[EMAIL PROTECTED], http://linuxcare.com.au/
Linuxcare.  Putting Open Source to work.

Reply via email to