- 论坛徽章:
- 0
|
现像如下:
[root@Redhat root]# rsync -avz --progress --include="dhcpd.conf" --exclude="*" backup@10.200.100.199::backup /backup/dhcp199 --password-file=/etc/rsyncd.pwd
could not open password file "/etc/rsyncd.pwd": No such file or directory
Password:
服务器描述:
[root@dhcp04 etc]# ls rsyncd* -l
-rw-r--r-- 1 root root 279 Jun 2 11:44 rsyncd.conf
-rw------- 1 root root 32 Jun 1 17:13 rsyncd.pwd
[root@dhcp04 etc]# pwd
/etc
[root@dhcp04 etc]# cat rsyncd.conf
uid =nobody
gid =nobody
use chroot=no
max connections=4
log file=/var/log/rsyncd.log
pid file=/var/run/rsyncd.pid
[backup]
path=/etc
comment=dhcp.conf syn file
auth users=backup,root
read only=true
hosts allow=10.253.100.50/24
hosts deny=0.0.0.0/32
secrets file=/etc/rsyncd.pwd
[root@dhcp04 etc]# cat rsyncd.pwd
backup:dhcp_server
root:u5783xw
[root@dhcp04 log# cat rsyncd.log
2003/06/02 11:44:43 [23325] rsyncd version 2.4.6 starting
2003/06/02 12:16:07 [23330] auth failed on module backup from redhat (10.253.100
.50)
谢谢各位指点~~
不盛感激 |
|