numeric-ids parameter in the rsyncd.conf doesn't not wok

2010-12-24 Thread Qian Hao
Hi ,guys
I want to synchronize some files from my local computer to a remote
server while preserving the user name and group name. The rsyncd.conf
file on the remote server is:

[enso-home]
path=/home/./enso
read only=no
uid=root
gid=root
auth users=test
secrets file=/etc/secrets
use chroot=yes
numeric ids=no

Since the parameter numeric ids is enabled for the chroot modules by
default, I set it to no explicitly in the config file.I tried  with
the command:

rsync -go --password-file=/home/yorua007/secrets ./test.txt
t...@remote server's ip::enso-home/

But the user name and group name of the file test.txt changed to be
names on the remote server.

-- 
此致

敬礼!
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

“use chroot” in the rsync.conf

2010-12-23 Thread Qian Hao
hello everyone,
I am a little confused by the use chroot setting in the rsyncd.conf.
In the manpages, it says that

As  an  additional safety feature, you can specify a dot-dir in the
module's path to indicate
 the point where the chroot should occur.  This allows rsync to run in
a chroot with  a  non-/
 path for the top of the transfer hierarchy.  Doing this guards
against unintended library load-
 ing (since those absolute paths will not be inside the transfer
hierarchy unless you have  used
 an unwise pathname), and lets you setup libraries for the chroot that
are outside of the transfer. 

what does the Doing this mean ? Does it mean that specify a dot-dir
in the module's path  ?
I can not figure out it's safer to specify a dot-dir in the module's path.
--
此致
敬礼!
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html