From fca9a9b0f044a9ef93cea27dadc01ecd56d1274c Mon Sep 17 00:00:00 2001 From: David Dykstra Date: Thu, 27 Jun 2002 17:51:25 +0000 Subject: [PATCH] Document in --owner and "use chroot" that --numeric-ids is implied when use chroot is yes. --- rsync.yo | 4 +++- rsyncd.conf.yo | 11 ++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/rsync.yo b/rsync.yo index 699986e4..5f13d384 100644 --- a/rsync.yo +++ b/rsync.yo @@ -428,7 +428,9 @@ permissions to be the same as the local permissions. dit(bf(-o, --owner)) This option causes rsync to set the owner of the destination file to be the same as the source file. On most systems, -only the super-user can set file ownership. +only the super-user can set file ownership. Note that if the remote system +is a daemon using chroot, the --numeric-ids option is implied because the +remote system cannot get access to the usernames from /etc/passwd. dit(bf(-g, --group)) This option causes rsync to set the group of the destination file to be the same as the source file. If the receiving diff --git a/rsyncd.conf.yo b/rsyncd.conf.yo index a8c69e6c..8f8177fb 100644 --- a/rsyncd.conf.yo +++ b/rsyncd.conf.yo @@ -132,12 +132,13 @@ for each module in tt(/etc/rsyncd.conf). dit(bf(use chroot)) If "use chroot" is true, the rsync server will chroot to the "path" before starting the file transfer with the client. This has the advantage of extra protection against possible implementation security -holes, but it has the disadvantages of requiring super-user privileges and +holes, but it has the disadvantages of requiring super-user privileges, of not being able to follow symbolic links outside of the new root path -when reading. When "use chroot" is false, for security reasons -symlinks may only be relative paths pointing to other files within the -root path, and leading slashes are removed from absolute paths. The -default for "use chroot" is true. +when reading, and of implying the --numeric-ids option because /etc/passwd +becomes inaccessible. When "use chroot" is false, for security reasons +symlinks may only be relative paths pointing to other files within the root +path, and leading slashes are removed from absolute paths. The default for +"use chroot" is true. dit(bf(max connections)) The "max connections" option allows you to specify the maximum number of simultaneous connections you will allow. -- 2.34.1