[Bug 9823] New: Permission denied as root when no read for other
samba-bugs at samba.org
samba-bugs at samba.org
Mon Apr 22 03:00:48 MDT 2013
https://bugzilla.samba.org/show_bug.cgi?id=9823
Summary: Permission denied as root when no read for other
Product: rsync
Version: 3.0.6
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: core
AssignedTo: wayned at samba.org
ReportedBy: list.4.gehlen at gmail.com
QAContact: rsync-qa at samba.org
ISSUE:
When I'm running rsync as root (daemon and client sides) on a directory with no
rights for other (chmod 750), I get an error message: "failed: Permission
denied (13)"
Is it the expected behaviour for rsync?
HOW TO REPRODUCE:
Make a test directory to share with rsync:
# id
uid=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
# mkdir /test/
# touch /test/myNiceFile
Remove the rights for Other:
# chmod o-rx /test/
# ls -al /test/
total 8
drwxr-x---. 2 root root 4096 Apr 18 13:31 .
dr-xr-xr-x. 25 root root 4096 Apr 18 13:31 ..
-rw-r--r--. 1 root root 0 Apr 18 13:31 myNiceFile
Edit the config file
# cat /etc/rsyncd.conf
[test-rsync]
path = /test/
Start the daemon as root:
# rsync --daemon
Run the sync (on the localhost) also as root:
# rsync -avzH localhost::test-rsync /tmp/
receiving incremental file list
rsync: change_dir "/" (in test-rsync) failed: Permission denied (13)
sent 4 bytes received 6 bytes 20.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors)
(code 23) at main.c(1505) [receiver=3.0.6]
I was able to reproduce on RHEL 5.8, Fedora 18, Debian 6.0 and Ubuntu 10.04.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the rsync
mailing list