summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-03-17 01:35:59 +0000
committerMartin Pool <mbp@samba.org>2001-03-17 01:35:59 +0000
commit2af27ad9aabae8d32ca24cca677086ca8c4b2b1e (patch)
tree2a732c778cbb84c304b55ed668403649dd27e389
parent3b2b53456759d614a92f178fa43f9c9ec1332f8e (diff)
downloadrsync-2af27ad9aabae8d32ca24cca677086ca8c4b2b1e.tar.gz
More accurately, the uid/gid is set to -2, not "nobody".
-rw-r--r--clientserver.c2
-rw-r--r--rsyncd.conf.yo7
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