In the previous article I did not give you a description of how to change the permissions of the user, this time I will make up for you:
Use ACL access control mechanism Set User rput to /var/www/html Write permission, ACL Access control command to the user all permissions to modify, to other system users, local users are not affected, This is equivalent to a virtual user right, but can also be used.
1.-r option indicates recursive operation,-M option indicates Modify Permissions
650) this.width=650; "style=" Float:none; "title=" 1.png "src=" http://s3.51cto.com/wyfs02/M02/70/26/ Wkiom1wyvecwdaifaabchs_k8au961.jpg "alt=" Wkiom1wyvecwdaifaabchs_k8au961.jpg "/>
2.default indicates that the new document user in the html/ directory also has rwx permissions
650) this.width=650; "style=" Float:none; "title=" 2.png "src=" http://s3.51cto.com/wyfs02/M00/70/23/ Wkiol1wyvift9uh5aabq4s7fslq683.jpg "alt=" Wkiol1wyvift9uh5aabq4s7fslq683.jpg "/>
3. View ACL permissions for a directory
650) this.width=650; "style=" Float:none; "title=" 3.png "src=" http://s3.51cto.com/wyfs02/M00/70/26/ Wkiom1wyvecae7gqaaef9v_enjq571.jpg "alt=" Wkiom1wyvecae7gqaaef9v_enjq571.jpg "/>
Rsync Backup Source configuration:
1. Configure the rsync Backup Source to establish the configuration file rsyncd.conf; 2. Create a backup account; 3. Then rsync Program to " --daemon " option to run.
1.
650) this.width=650; "style=" Float:none; "title=" 4.png "src=" http://s3.51cto.com/wyfs02/M02/70/23/ Wkiol1wyv8udcm7vaae6fivgjug505.jpg "alt=" Wkiol1wyv8udcm7vaae6fivgjug505.jpg "/>
p ort port number 873
log File : "Log File" Specify rsync log file without sending the log to the syslog .
hosts allow = Single IP address or network address// allowed access to the client address
path : This parameter is required.
&NBSP, yes no
Secrets File : This option specifies a containing definition User name : Password to the file. This file is only useful if the "auth users" is defined.
Auth Users : This option specifies the list of user names separated by spaces or commas, and only those users are allowed to connect to the module.
2. Setting Up rsync sync users
650) this.width=650; "style=" Float:none; "title=" 5.png "src=" http://s3.51cto.com/wyfs02/M02/70/26/ Wkiom1wyvepqgphkaaaypdb2ctq918.jpg "alt=" Wkiom1wyvepqgphkaaaypdb2ctq918.jpg "/>
and the password file must be configured with 700 permissions
650) this.width=650; "style=" Float:none; "title=" 6.png "src=" http://s3.51cto.com/wyfs02/M00/70/23/ Wkiol1wyv8uyvab-aaa2js-vvi4097.jpg "alt=" Wkiol1wyv8uyvab-aaa2js-vvi4097.jpg "/>
3. Start the Rsync service (if you want to turn off the rsync service, you can use the Kell command to kill the process and see if the process can use pgrep)
650) this.width=650; "style=" Float:none; "title=" 7.png "src=" http://s3.51cto.com/wyfs02/M00/70/26/ Wkiom1wyvetyqfeyaaahxteo_la702.jpg "alt=" Wkiom1wyvetyqfeyaaahxteo_la702.jpg "/>
Rsync Port number is tcp873
650) this.width=650; "style=" Float:none; "title=" 8.png "src=" http://s3.51cto.com/wyfs02/M01/70/23/ Wkiol1wyv8vsr311aabgqozrvke327.jpg "alt=" Wkiol1wyv8vsr311aabgqozrvke327.jpg "/>
4. Save "rsync--daemon" to the /etc/rc.local file to ensure that the system starts automatically after booting rsync Service
650) this.width=650; "title=" 9.png "src=" Http://s3.51cto.com/wyfs02/M01/70/23/wKioL1WyWlCx8lq_AAA4jgszfZY960.jpg " alt= "Wkiol1wywlcx8lq_aaa4jgszfzy960.jpg"/>
Downlink Synchronization test:
650) this.width=650; "title=" 10.png "src=" http://s3.51cto.com/wyfs02/M01/70/26/wKiom1WyWLjyDTzgAADFFSvZryE364.jpg "alt=" Wkiom1wywljydtzgaadffsvzrye364.jpg "/>
For security reasons, it is best to allow only read-only downstream synchronization for rsync backup sources, and if you do need to do upstream synchronization, we recommend using an SSH backup source instead.
Linux rsync remote Sync (cont.)