rsync Q, third try.

Felipe Figueiredo philsf at ufrj.br
Mon Aug 14 06:58:45 UTC 2006


On Friday 11 August 2006 17:25, Gene Heskett wrote:
> On Friday 11 August 2006 01:57, Felipe Figueiredo wrote:
> >Le Friday 11 August 2006 01:25, Gene Heskett a écrit :
> >> rsync: could not open password file "/etc/rsync/xxxx.yyyy": Permission
> >> denied (13)
> >> Password:
> >>
> >> This file has been world readable, owned by root:root, and gene:gene
> >> with a chmod 0600 applied to it, all without effecting that error
> >> message a bit.
> >
> >First things first.
> >
> >What about directory permissions? Are they correct?
> >
> >Have you tried copying xxxx.yyyy from /etc/rsync to another  dir, say
> > /tmp, and use that in the CL?
>
> Ah mm, no, but I did move it from /etc to ~/user, and that had no effect.
> rsync wants rather exclusive perms, but maybe my setting it via chown to
> the user, and chmod 0600 is too tight?  I started out with it owned by
> root:root, and I've setup a root password, exactly as its setup on 2 other
> machines, and that gave the exact same failure.  The rsync client has been
> configured, and until I removed it and reinstalled it, it was running, and
> is now also.  Apparently the removal & reinstall didn't nuke the configs I
> had setup, modeled on what works on the other 2 machines.

Ok, so then I went to the source ( man rsync ) :

       --password-file
              This  option  allows  you  to  provide  a password in a file for
              accessing a remote rsync daemon. Note that this option  is  only
              useful  when accessing an rsync daemon using the built in trans-
              port, not when using a remote shell as the transport.  The  file
              must  not be world readable. It should contain just the password
              as a single line.

If I understand the scope of this file, it probabably shouldn't reside 
in /etc. It probably shouldn't even exist for long, just for the execution of 
the sync, so your ~ should be fine (maybe a dot-file, with perm 0600).

Are you accessing the remove machine which gets you to a ssh shell, or does 
the remote run a rsyncd?

Is your password-file in the correct format?

Is it still world readable?




More information about the kubuntu-users mailing list