我用rsync同步两台机器上的文件,但是一直不成功,提示permission denied。初步确定是selinux的问题,rsync和同步文件的权限如下:
[root@localhost wangqingze]# ps axZ | grep rsync
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 9184 ? Ss 0:00 rsync --daemon --config=/etc/rsyncd.conf
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 12382 pts/0 S+ 0:00 grep rsync
[root@localhost wangqingze]# ll -Z
drwxr-xr-x. wangqingze wangqingze unconfined_u:object_r:usr_t:s0 spring
请问各位如何解决??