]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
More accurately, the uid/gid is set to -2, not "nobody".
authorMartin Pool <mbp@samba.org>
Sat, 17 Mar 2001 01:35:59 +0000 (01:35 +0000)
committerMartin Pool <mbp@samba.org>
Sat, 17 Mar 2001 01:35:59 +0000 (01:35 +0000)
clientserver.c
rsyncd.conf.yo

index 64e4d89695fb272cebf37ca0f1995c040ec954b6..a4e9e82e8467b87026a28d83dd25e8fa2057de46 100644 (file)
@@ -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);
index 7dae2da046419ffa963b83ae1fc0dd774188d455..9f13fde1a7e702ffe895d03519947e61127c6f6b 100644 (file)
@@ -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