[root@sheng ~]# rsync -avzLP --port 8730 test@192.168.107.131::test ./test/
Password:
@ERROR: auth failed on module test
rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]
如上,远程复制显示密码错误,密码的文件确实没问题,结果发现修改密码文件的权限就可以,不解
[root@localhost ~]# ll /etc/rsyncd.passwd
-rw-r--r-- 1 root root 12 Aug 31 07:47 /etc/rsyncd.passwd
默认权限时,密码错误
[root@localhost ~]# chmod 600 !$
chmod 600 /etc/rsyncd.passwd
修改成600后就可以
[root@localhost ~]# ll /etc/rsyncd.passwd
-rw------- 1 root root 12 Aug 31 07:47 /etc/rsyncd.passwd
将644权限修改为600权限就可以,求解
Password:
@ERROR: auth failed on module test
rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]
如上,远程复制显示密码错误,密码的文件确实没问题,结果发现修改密码文件的权限就可以,不解
[root@localhost ~]# ll /etc/rsyncd.passwd
-rw-r--r-- 1 root root 12 Aug 31 07:47 /etc/rsyncd.passwd
默认权限时,密码错误
[root@localhost ~]# chmod 600 !$
chmod 600 /etc/rsyncd.passwd
修改成600后就可以
[root@localhost ~]# ll /etc/rsyncd.passwd
-rw------- 1 root root 12 Aug 31 07:47 /etc/rsyncd.passwd
将644权限修改为600权限就可以,求解
编辑回复