LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync permissions issue (https://www.linuxquestions.org/questions/linux-software-2/rsync-permissions-issue-680910/)

zeeple 11-03-2008 04:47 PM

rsync permissions issue
 
I am having some trouble rsyncing some httpd logs from my web server to my admin server, where I have python scripts that will parse them.

web server: running rsync --daemon, logs files in /var/log/httpd, with these two defs:

[test]

path = /root/rsync_test
read only = true
hosts allow = *

[weblogs]

path = /var/log/httpd
read only = true
hosts allow = *


admin server: using this command:

rsync -a rsync://webserver/test/test.log . works like a charm, however, this command:

rsync -a rsync://webserver/weblogs/access_log.10-06-2008 . yields this error:

push_dir .: Permission denied (3)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(317)
rsync: connection unexpectedly closed (4 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(420)

My best guess is that there is something about the permissions on the httpd directory that is causing the problem, but the perms are the same (644) on bothe the httpd and the rsync_test directories and all the files within them.

Any suggestions?

billymayday 11-03-2008 06:11 PM

Could be SELinux. What user are you doing this as? Try temp. disabling SELinux with setenforce 0

zeeple 11-03-2008 06:15 PM

Funny timing. I just figured it out. Having 644 permissions on the httpd dir was insufficient for rsync to even read from the dir. Once I changes it to 755 the rsync started working for me as expected. Odd that execute permissions would be required, but that seems to be the case.

chrism01 11-03-2008 08:13 PM

On a dir, x=search, not executable
http://www.tuxfiles.org/linuxhelp/filepermissions.html


All times are GMT -5. The time now is 01:52 PM.