rsync unauthorized access

The following configuration can be modified, a position profile: /etc/rsync.conf or /etc/rsyncd.conf 

If you do not create this file

 

 

list = false # hidden module information
read only = true # Control permissions set to read-only
host allow = [ip] # limit to allow access to host ip
host deny = [ip] # disabled host
auth user = ottocho # allow only specified users
secrets file = /etc/rsyncd.passwd # specify a password file, the format username: password, the password must be eight or more, and contain uppercase and lowercase letters, numbers, special characters and so on.
uid = username root # transport use
gid = root # user group to use for transmission
uid and gid, but with sufficient account rights to be minimal

Guess you like

Origin www.cnblogs.com/mrhonest/p/10948649.html