Am Die, 10 Apr 2001 schrieb Pierre Abbat:
> On Tue, 10 Apr 2001, Andreas Meyer wrote:
> >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.
Thank you for the explanation! I´ll make some more tests and read the man
rsyncd again ;)
I thought the uid and gid is only needed in the global section of the
rsyncd.conf.
In the module-section I have:
auth users = andreas, root
secrets file = /etc/rsyncd.secrets
regards
--
Andreas Meyer http://home.wtal.de/MeineHomepage