I'm running Debian 11 with rsyncd 3.2, which has
ProtectSystem=full as default.
I'd like to override that, so am using
systemctl edit to do so. Here's what I'm putting in the override:
### Editing /etc/systemd/system/rsync.service.d/override.conf ### Anything between here and the comment below will become the new contents of the file [Service] ProtectSystem=off ### Lines below this comment will be discarded
The logs report no parsing errors with this and the unit (I think) reloads with the new configuration.
However, I still get "Read-only file system" errors when trying to rsync in to paths in
/etc (for example).
What is wrong that I can't override this restriction? Or is this restriction not the issue? The configuration was working fine on Debian 10 before I upgraded to Debian 11, so I assume it the
ProtectSystem that's causing the problem.
EDIT: Here's the config in
/etc/rsyncd.conf I'm using:
[nameOfMount] path = /etc/postfix auth users = sysadmin secrets file = /etc/rsyncd.secrets hosts allow = xxx.xxx.xxx.xxx read only = false uid = root pre-xfer exec = /usr/local/bin/scriptA.sh post-xfer exec = /usr/local/bin/scriptB.sh
The pro/post exec scripts make backup copies of files being transferred, and reload the postfix daemon. The errors from these are for example:
rsync error: requested action not supported (code 4) at clientserver.c(1098) [Receiver=3.2.3] /bin/cp: cannot create regular file '/etc/postfix/fileName.yyyymmddd': Read-only file system