From 2af27ad9aabae8d32ca24cca677086ca8c4b2b1e Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Sat, 17 Mar 2001 01:35:59 +0000 Subject: [PATCH] More accurately, the uid/gid is set to -2, not "nobody". --- clientserver.c | 2 +- rsyncd.conf.yo | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/clientserver.c b/clientserver.c index 64e4d896..a4e9e82e 100644 --- a/clientserver.c +++ b/clientserver.c @@ -141,7 +141,7 @@ static int rsync_module(int fd, int i) char *argv[MAX_ARGS]; char **argp; char line[MAXPATHLEN]; - uid_t uid = (uid_t)-2; + uid_t uid = (uid_t)-2; /* canonically "nobody" */ gid_t gid = (gid_t)-2; char *p; char *addr = client_addr(fd); diff --git a/rsyncd.conf.yo b/rsyncd.conf.yo index 7dae2da0..9f13fde1 100644 --- a/rsyncd.conf.yo +++ b/rsyncd.conf.yo @@ -164,12 +164,13 @@ for modules to be listable. dit(bf(uid)) The "uid" option specifies the user name or user id that file transfers to and from that module should take place as when the daemon was run as root. In combination with the "gid" option this determines what -file permissions are available. The default is the user "nobody". +file permissions are available. The default is uid -2, which is normally +the user "nobody". dit(bf(gid)) The "gid" option specifies the group name or group id that file transfers to and from that module should take place as when the daemon -was run as root. This complements the "uid" option. The default is the -group "nobody". +was run as root. This complements the "uid" option. The default is gid -2, +which is normally the group "nobody". dit(bf(exclude)) The "exclude" option allows you to specify a space separated list of patterns to add to the exclude list. This is -- 2.34.1