Setup a Remotely Accessible rsync Server: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * rsync =Overview= =Procedure= ==SELinux Configuration== rsync may interact with SELinux and fail operations that otherwise would succeed. A...") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[ | * [[Rsync#Setup_a_Remotely_Accessible_rsync_Server|rsync]] | ||
=Overview= | =Overview= | ||
=Procedure= | =Procedure= | ||
==Configure the rsyncd Daemon== | |||
===Configure UID/GID=== | |||
Set the uid and git to "root" to allow the rsyncd server to preserve the original owners and groups. See: {{Internal|Rsyncd.conf#Configure_User_and_Group|rsyncd.conf - Configure User and Group}} | |||
==Enable the rsyncd Daemon to Start at Boot== | |||
{{Internal|Rsync#Configure_a_rsync_Daemon_to_Start_at_Boot|Enable the rsyncd Daemon to Start at Boot}} | |||
==SELinux Configuration== | ==SELinux Configuration== | ||
Line 12: | Line 22: | ||
<syntaxhighlight lang='text'> | <syntaxhighlight lang='text'> | ||
[...] rsync: recv_generator: mkdir "/timesnap" (in rackstationb) failed: Permission denied (13): | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 19: | Line 29: | ||
setsebool -P rsync_full_access=on | setsebool -P rsync_full_access=on | ||
The change survives reboot. | The change survives reboot. For more details, see: {{Internal|SELinux_Operations#Changing_SELinux_Policy_Booleans_at_Runtime|Changing SELinux Policy Booleans at Runtime}} |
Latest revision as of 05:40, 27 December 2018
Internal
Overview
Procedure
Configure the rsyncd Daemon
Configure UID/GID
Set the uid and git to "root" to allow the rsyncd server to preserve the original owners and groups. See:
Enable the rsyncd Daemon to Start at Boot
SELinux Configuration
rsync may interact with SELinux and fail operations that otherwise would succeed. A typical symptom is not to be able to create a directory:
[...] rsync: recv_generator: mkdir "/timesnap" (in rackstationb) failed: Permission denied (13):
The solution is to:
setsebool -P rsync_full_access=on
The change survives reboot. For more details, see: