On Tue, 10 Apr 2001, Andreas Meyer wrote:
>Hi all!
>
>Great thing this rsync to backup my files to my backup-server!
>
>My secrets-file in /etc looks like this:
>root:rootpassword
>andreas:password
>
>In the bash as root I do a:
>root@gamma:/home/andreas > rsync -avz -e ssh /cad alpha::ga-cad
>Password:
>
>When I give the rootpassword I get an error-message. The password of
>andreas works then.
>What I´m I doing wrong?
You're using ssh with an rsync module. If you put two colons in an rsync url,
the rsync server will look at the rsyncd.conf file and find what password is
required for the module, which is apparently andreas's, not root's.
When you use an rsync module with a password, there is no requirement that the
password be the same as that in /etc/passwd, or even that the user exist in
/etc/passwd. Thus you can let someone update a website (or whatever) without
being able to log in to the system. The rsync server will run as the user
specified in uid for that module, who does have to exist in /etc/passwd.
phma