issues with password-file

Wayne Davison wayned at samba.org
Mon Apr 3 22:47:36 GMT 2006


On Sun, Apr 02, 2006 at 10:55:38AM -0500, Larry Hotchkiss wrote:
> To test the accuracy of the error I renamed the
> password-file=/path/secrets.rsync to something else but left the
> command unchanged and I got the identicle auth error which tells me
> that it will give a password mismatch if it cant find the password
> file as well.

Rsync will output an error about the missing file to stderr:

rsync: could not open password file "/path/secrets.rsync": No such file or directory (2)

And it will then prompt you for a password.  If stdin is not available,
that will result in an empty password being sent to the daemon, and the
daemon rejecting the authorization attempt with a password-mismatch
error.

If the password file is not set with the proper permissions, it will
also be rejected.  E.g.:

password file must not be other-accessible
continuing without password file

The file can be group-readable, though.

Make sure that your php script that is running rsync is returning the
stderr output so that you'll see if the --password-file option is
failing.  (E.g. you might need to use "2>&1" to merge stderr into
stdout.)

..wayne..


More information about the rsync mailing list