[Gllug] SeLinux and Xinetd & Rsync
addw at phcomp.co.uk
Wed May 16 19:11:45 UTC 2007
Summary: SeLinx stops rsync reading /etc/rsyncd.conf
I installed my system and needed rsync. I created a suitable /etc/rsyncd.conf (mode 644, owner root:root) and turned on
chkconfig rsync on
(and restarted xinetd for good measure).
Whenever I try to do an rsync from another machine I get the following in /var/log/messages:
May 13 23:09:18 gateway rsyncd: rsync: unable to open configuration file "/etc/rsyncd.conf": Permission denied (13)
May 13 23:09:18 gateway rsyncd: rsync error: syntax or usage error (code 1) at clientserver.c(741) [receiver=2.6.8]
If I type:
it works fine .... so the problem is SELinux. I would like to leave SELinux on, but how do I get rsync to work ?
OS is CentOS 5 (== RedHat Enterprise 5)
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
Gllug mailing list - Gllug at gllug.org.uk
More information about the GLLUG