LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-03-2008, 04:47 PM   #1
zeeple
Member
 
Registered: Sep 2006
Distribution: Fedora 8, RHEL 5
Posts: 62

Rep: Reputation: 15
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?
 
Old 11-03-2008, 06:11 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Could be SELinux. What user are you doing this as? Try temp. disabling SELinux with setenforce 0
 
Old 11-03-2008, 06:15 PM   #3
zeeple
Member
 
Registered: Sep 2006
Distribution: Fedora 8, RHEL 5
Posts: 62

Original Poster
Rep: Reputation: 15
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.
 
Old 11-03-2008, 08:13 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,802

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync with permissions, but not as root nifflerX Linux - General 5 09-28-2011 11:14 PM
Rsync set permissions destination Abstractt Linux - General 3 09-30-2010 02:05 AM
Changing permissions of destination directory after rsync cliff123 Linux - General 1 12-26-2007 03:09 AM
Remote rsync permissions error gigamike Linux - Networking 0 05-19-2007 07:21 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration