Menu

Rsync daemon modules need authentication, path control and transport review
📰

Rsync daemon modules need authentication, path control and transport review

DEV Community: cybersecurity·StarkMan·10 days ago
#pUcIoZ1K
#devtocybersecurity#devto#dev#module#daemon
Reading 0:00
15s threshold

Rsync daemon modules need authentication, path control and transport review

An rsync daemon is a file-transfer service with its own module configuration. The convenience is easy to underestimate. The current rsyncd.conf manual says all users can connect without a password by default, which is described as anonymous rsync. A module that exposes a backup or deployment directory without a deliberate access policy is therefore not a private endpoint.

Start with the module identity

Use auth users with a secrets file for modules that are not intentionally anonymous. The manual warns that the secrets file must be readable only by the daemon user, or by root when the daemon runs as root, unless strict mode checks are disabled. The file should not appear in backups, source control or a shared home directory.

Separate modules by purpose and path. A read-only release mirror, a writable deployment target and a backup repository should not share one unrestricted root.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.