Hi all!
I have a problem configuring rsync as daemon:
This is my rsync.conf:
log file = /var/log/rsync.log
list = yes
uid = nobody
gid = nobody
secrets file = /etc/rsyncd.secrets
[section]
comment = Great stuff from remote.acme.com
path = /home/repos
auth users = marco
hosts allow = *
hosts deny = *
This is my /etc/rsyncd.secrets
marco:marco
This is the secrets file permission:
[root@server marco]# ls -l /etc/rsyncd.secrets
-rw-------  1 root root 12 Nov 12 17:01 /etc/rsyncd.secrets
This is /etc/xinetd.d/rsync
service rsync
{
        disable = no
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/bin/rsync
        server_args     = --daemon
        log_on_failure  += USERID
}
The problem is that I can not rsync from a client: it seems rsync is using
pam and system users for logging. I've tried to enable the user marco as
system user and I can login!!! So I think rsync can not authenticate using
the secret file.
user@client:~$ rsync -vv marco@server::section
opening connection using ssh -l marco server rsync --server --sender -vv .
FxS
marco@server's password:
Permission denied, please try again.
Into /var/log/messages I have
Nov 12 17:10:46 server sshd(pam_unix)[16221]: check pass; user unknown
Nov 12 17:10:46 server sshd(pam_unix)[16221]: authentication failure;
logname= uid=0 euid=0 tty=ssh ruser= rhost=10.0.0.34
What should I check?
Thanks
Marco
-------------- next part --------------
HTML attachment scrubbed and removed
Alexandros Papadopoulos
2007-Nov-12  17:15 UTC
rsync as daemon doesnt use secrets file but sshd
On Monday 12 November 2007 18:17, Marco Strullato wrote: <snip>> user@client:~$ rsync -vv marco@server::section > opening connection using ssh -l marco server rsync --server --sender -vv .Is appears to be a client issue - where does it pick up the -e ssh from? Check for aliases in your shell or global client defaults for your distribution. The command feedback is as if you were including the "-e ssh" argument to rsync. Try: $ export LOGNAME=marco $ export RSYNC_PASSWORD=yourpassword $ mkdir tmp $ rsync -avv server::section tmp/ -A
On Mon, Nov 12, 2007 at 05:17:01PM +0100, Marco Strullato wrote:> user@client:~$ rsync -vv marco@server::section > opening connection using ssh -l marco server rsync --server --sender -vv .This is incongruous. The first line has 2-colons (for daemon mode), but the connect line is connecting via ssh without the --daemon option, so rsync just saw a single colon. You should figure out why that colon disappeared. ..wayne..