[Gllug] SeLinux and Xinetd & Rsync

Alain Williams 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
rsync:
	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[11327]: rsync: unable to open configuration file "/etc/rsyncd.conf": Permission denied (13)
	May 13 23:09:18 gateway rsyncd[11327]: rsync error: syntax or usage error (code 1) at clientserver.c(741) [receiver=2.6.8]

If I type:
	setenforce 0
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)

Many thanks.

-- 
Alain Williams
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
#include <std_disclaimer.h>
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list