[Gllug] SeLinux and Xinetd & Rsync
stuart at sjsears.com
Wed May 16 19:30:49 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Alain Williams wrote:
> 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: 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: 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 ?
they'll be in /var/log/messages or /var/log/audit/audit.log
this will at least help work out what the issue is exactly...
although the error may suggest that /etc/rsyncd.conf is mislabeled
so, as well as the error logs, the output of
ls -Z /etc/rsyncd.conf
semanage fcontext -l | grep rsync
could help here
Stuart Sears RHCA RHCSS RHCX STFU PDQ RIAA MP3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Gllug mailing list - Gllug at gllug.org.uk
More information about the GLLUG