> > When doing a 'rsync -avz /tmp fdops3::marktg' I observe the following
> > behavior:
> >
> > Sending machine lists files as they are sent, but then towards
> the end, I
> > start getting
> >
> >  unlink tmp/fred/spn1 : Not privileged
>
> Is there such a file in your source tree?

Well, It's not a file, all the complaints are about directories.  Its not
some directories either, its every directory in the source tree.

> If so, please do a `ls -l'
> to show the permissions, and post the results.

The permissions are varied.  But, the local machine from where I am getting
the 'unlink' messages, I am executing rsync as root.

> Is the daemon really running as root?

Yes the remote machine shows the daemon as both started as root and its PPID
is 1

> /tmp is a really bad source directory to use, because there could be
> all kinds of temporary files in there created by other processes.  If
> you're building up content in there to be transferred, then I'd
> suggest you instead make your own subdirectory of /tmp and use that
> instead.

No, I'm just using it as a first test.  The real target will be other
production directories for daily backups.

> This error message is SCO-specific, I think.  Please look at the
> unlink(2) man page on your version of SCO, and post the description of
> the error and the conditions under which it can occur.

[EPERM]
        The named file is a directory and the effective user ID of the process is
not super user.

As far as I can tell, I'm running as root everwhere...

> >  rsync to marktg from fdops2
> >  wrote 32 bytes  read 2439031 bytes  total size 13862565
> >  transfer interrupted (code 102) at main.c(432)
>
> At least on Linux, 102 is
>
>   #define     ENETRESET       102     /* Network dropped
> connection because of reset */
>
> which would imply that the sender died.
>
> If none of these look promising, then please try to find a small
> example that reproduces the problem (i.e. just a few files in
> /tmp/todd/) and send the output of rsync -vvv

I'll use part of the rsync source file.

Issued the following command as root:

 rsync -avvvz /tmp/rsync-2.4.6/lib fdops3::marktg 2>&1 > /rsync.txt

The unlink message went to the console not the file, it was:

 unlink rsync-2.4.6/lib : Not privileged

here is the rsync.txt file:

local_version=24 remote_version=24
building file list ... make_file(3,lib)
make_file(3,lib/snprintf.c)
make_file(3,lib/compat.c)
make_file(3,lib/fnmatch.h)
make_file(3,lib/fnmatch.c)
make_file(3,lib/dummy.in)
make_file(3,lib/mdfour.c)
make_file(3,lib/mdfour.h)
make_file(3,lib/getopt.c)
make_file(3,lib/getopt.h)
make_file(3,lib/dummy)
make_file(3,lib/getopt.o)
make_file(3,lib/fnmatch.o)
make_file(3,lib/compat.o)
make_file(3,lib/snprintf.o)
make_file(3,lib/mdfour.o)
done
send_file_list done
send_files starting
lib/
send_files(1,/tmp/rsync-2.4.6/lib/compat.c)
send_files mapped /tmp/rsync-2.4.6/lib/compat.c of size 4137
calling match_sums /tmp/rsync-2.4.6/lib/compat.c
lib/compat.c
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/compat.c
send_files(2,/tmp/rsync-2.4.6/lib/compat.o)
send_files mapped /tmp/rsync-2.4.6/lib/compat.o of size 1188
calling match_sums /tmp/rsync-2.4.6/lib/compat.o
lib/compat.o
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/compat.o
send_files(3,/tmp/rsync-2.4.6/lib/dummy)
send_files mapped /tmp/rsync-2.4.6/lib/dummy of size 102
calling match_sums /tmp/rsync-2.4.6/lib/dummy
lib/dummy
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/dummy
send_files(4,/tmp/rsync-2.4.6/lib/dummy.in)
send_files mapped /tmp/rsync-2.4.6/lib/dummy.in of size 102
calling match_sums /tmp/rsync-2.4.6/lib/dummy.in
lib/dummy.in
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/dummy.in
send_files(5,/tmp/rsync-2.4.6/lib/fnmatch.c)
send_files mapped /tmp/rsync-2.4.6/lib/fnmatch.c of size 12716
calling match_sums /tmp/rsync-2.4.6/lib/fnmatch.c
lib/fnmatch.c
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/fnmatch.c
send_files(6,/tmp/rsync-2.4.6/lib/fnmatch.h)
send_files mapped /tmp/rsync-2.4.6/lib/fnmatch.h of size 2965
calling match_sums /tmp/rsync-2.4.6/lib/fnmatch.h
lib/fnmatch.h
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/fnmatch.h
send_files(7,/tmp/rsync-2.4.6/lib/fnmatch.o)
send_files mapped /tmp/rsync-2.4.6/lib/fnmatch.o of size 866
calling match_sums /tmp/rsync-2.4.6/lib/fnmatch.o
lib/fnmatch.o
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/fnmatch.o
send_files(8,/tmp/rsync-2.4.6/lib/getopt.c)
send_files mapped /tmp/rsync-2.4.6/lib/getopt.c of size 21937
calling match_sums /tmp/rsync-2.4.6/lib/getopt.c
lib/getopt.c
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/getopt.c
send_files(9,/tmp/rsync-2.4.6/lib/getopt.h)
send_files mapped /tmp/rsync-2.4.6/lib/getopt.h of size 4438
calling match_sums /tmp/rsync-2.4.6/lib/getopt.h
lib/getopt.h
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/getopt.h
send_files(10,/tmp/rsync-2.4.6/lib/getopt.o)
send_files mapped /tmp/rsync-2.4.6/lib/getopt.o of size 5879
calling match_sums /tmp/rsync-2.4.6/lib/getopt.o
lib/getopt.o
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/getopt.o
send_files(11,/tmp/rsync-2.4.6/lib/mdfour.c)
send_files mapped /tmp/rsync-2.4.6/lib/mdfour.c of size 5842
calling match_sums /tmp/rsync-2.4.6/lib/mdfour.c
lib/mdfour.c
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/mdfour.c
send_files(12,/tmp/rsync-2.4.6/lib/mdfour.h)
send_files mapped /tmp/rsync-2.4.6/lib/mdfour.h of size 1167
calling match_sums /tmp/rsync-2.4.6/lib/mdfour.h
lib/mdfour.h
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/mdfour.h
send_files(13,/tmp/rsync-2.4.6/lib/mdfour.o)
send_files mapped /tmp/rsync-2.4.6/lib/mdfour.o of size 3137
calling match_sums /tmp/rsync-2.4.6/lib/mdfour.o
lib/mdfour.o
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/mdfour.o
send_files(14,/tmp/rsync-2.4.6/lib/snprintf.c)
send_files mapped /tmp/rsync-2.4.6/lib/snprintf.c of size 18865
calling match_sums /tmp/rsync-2.4.6/lib/snprintf.c
lib/snprintf.c
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/snprintf.c
send_files(15,/tmp/rsync-2.4.6/lib/snprintf.o)
send_files mapped /tmp/rsync-2.4.6/lib/snprintf.o of size 511
calling match_sums /tmp/rsync-2.4.6/lib/snprintf.o
lib/snprintf.o
sending file_sum
false_alarms=0 tag_hits=0 matches=0
sender finished /tmp/rsync-2.4.6/lib/snprintf.o
send_files phase=1
send files finished
total: matches=0  tag_hits=0  false_alarms=0 data=83852
wrote 30438 bytes  read 280 bytes  20478.67 bytes/sec
total size is 83852  speedup is 2.73

daemon on fdops3 running with the following command (started by root):

rsync -vvvv --daemon

a 'ps -ef | grep rsync' shows:
 root 16868     1   0    Oct-16      ?    00:00:00 rsync -vvvv --daemon

rsyncd.conf same as previously posted.
rsyncd.log file shows:

{date} {time} [1415] rsync to marktg from fdops2 {ip}
{date} {time} [1416] wrote 32 bytes read 30438 bytes  total size 83852
{date} {time} [1415] transfer interrupted (code 102) at main.c(432)


Thanks,
Todd


Reply via email to