From 34db05b4215009a1b9864df13ea3b62a6b9c5527 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 21 Jan 2003 19:28:29 +0000 Subject: [PATCH] Put the UID and GID that rsyncd will run as into variables. --- testsuite/rsync.fns | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index 3ac95f5f..cdc545a7 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -24,6 +24,13 @@ TO=${TMP}/to LOG=${TMP}/log RSYNC="$rsync_bin" +# UID & GID to run rsyncd as if testsuite is running as root +# +# We don't know if this machine has "nobody" or "nogroup", so use the +# quasi-canonical values of (uint16_t) -2. +RSYNCD_UID=65534 +RSYNCD_GID=65534 + # Berkley's nice. PATH="$PATH:/usr/ucb" @@ -191,11 +198,8 @@ use chroot = no hosts allow = localhost, 127.0.0.1 log file = $logfile -# We don't know if this machine has "nobody" or "nogroup", so use the quasi-canonical -# values of (uint16_t) -2. - -uid = 65534 -gid = 65534 +uid = $RSYNCD_UID +gid = $RSYNCD_GID [test-from] path = $FROM -- 2.34.1