I feel like a fool, but I simply can't make rsync work with passwords.
I am using rsync 2.4.1 to effect file transfers between two Solaris
2.6 systems.

I have an automated transfer set up from rsync running as a daemon
(service name "file_xfer") on "repository" to rsync executed on
"mirrorhost".  Both ends run as root, as I must change file
ownerships.  So, I put "auth users = yes" in /etc/rsyncd.conf on
"repository" and put the following line in /etc/rysncd.secrets:

root:abcdef

[No, that's not my final password.]

When I execute the command to perform the transfer, I get a password
prompt, to which I enter "abcdef".  Then, I get the message:

@ERROR: auth failed on module file_xfer

Same result when I try to use --password-file.

Nothing I do gives me any more information.  Invoking -vv or even -vvv
doesn't give me any debugging information.  truss(1) confirms that my
user ID is indeed being sent as root, but other than that isn't much
help.

Here are the details:

On "repository" (the server / sending host):

# ls -asl /etc/rsyncd.*  
   2 -rw-r--r--   1 root     other        353 Jun 28 12:50 /etc/rsyncd.conf
   2 -rw-------   1 root     other         12 Jun 28 12:53 /etc/rsyncd.secrets

# cat /etc/rsyncd.conf 
log file = /var/rsyncd/rsyncd.log
pid file = /var/rsyncd/pid
syslog facility = daemon

[file_xfer]
comment = rsync daemon service for WISDOM disaster recovery backup
list = no
auth users = yes
secrets file = /etc/rsyncd.secrets
path = /
read only = yes
use chroot = yes
uid = root
gid = root
hosts deny = *
hosts allow = mirrorhost mirrorhost.example.com

# cat /etc/rsyncd.secrets 
root:abcdef

On "mirrorhost" (the client / receiving host):

# ls -asl /tmp/pw.txt                                                  
  16 -rw-------   1 root     other          7 Jun 28 12:51 /tmp/pw.txt
# cat /tmp/pw.txt                                                      
abcdef
# rsync -vvv --password-file=/tmp/pw.txt repository::file_xfer/etc/passwd .
@ERROR: auth failed on module file_xfer

So, what am I missing here?
--
 From the catapult of J.D. Baldwin  |+| "If anyone disagrees with anything I
   _,_    Finger [EMAIL PROTECTED] |+| say, I am quite prepared not only to
 _|70|___:::)=}-  for PGP public    |+| retract it, but also to deny under
 \      /         key information.  |+| oath that I ever said it." --T. Lehrer
***~~~~-----------------------------------------------------------------------

Reply via email to