--password-file= works just fine. You're using the files designated by
"secrets file" option in rsyncd.conf.
User Commands rsync(1)
--password-file
This option allows you to provide a password in a file
for accessing a remote rsync server. Note that this
option is only useful when accessing a rsync server
using the built in transport, not when using a remote
shell as the transport. The file must not be world
readable. It should contain just the password as a sin-
gle line.
Headers, Environments, and Macros rsyncd.conf(5)
auth users
The "auth users" option specifies a comma and space
separated list of usernames that will be allowed to
connect to this module. The usernames do not need to
exist on the local system. The usernames may also con-
tain shell wildcard characters. If "auth users" is set
then the client will be challenged to supply a username
and password to connect to the module. A challenge
response authentication protocol is used for this
exchange. The plain text usernames are passwords are
stored in the file specified by the "secrets file"
option. The default is for all users to be able to con-
nect without a password (this is called "anonymous
rsync").
secrets file
The "secrets file" option specifies the name of a file
that contains the username:password pairs used for
authenticating this module. This file is only consulted
if the "auth users" option is specified. The file is
line based and contains username:password pairs
separated by a single colon. Any line starting with a
hash (#) is considered a comment and is skipped. The
passwords can contain any characters but be warned that
many operating systems limit the length of passwords
that can be typed at the client end, so you may find
that passwords longer than 8 characters don't work.
Tim Conway
tim.conway@philips.com
303.682.4917
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, n9hmg on AIM
perl -e 'print pack(nnnnnnnnnnnn,
19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970),
".\n" '
"There are some who call me.... Tim?"
Francois Chenais <francois@chenais.net>
Sent by: rsync-admin@lists.samba.org
05/07/2002 08:20 AM
To: rsync@lists.samba.org
cc: (bcc: Tim Conway/LMT/SC/PHILIPS)
Subject: --passord-file doesn't work
Classification:
hello,
I have this error while using --password-file= option.
Any idea.
Fran?ois
tamtam:/etc# rsync --password-file=/etc/rsyncd.secrets backupcvs@cvs::cvs/
@ERROR: auth failed on module cvs
rsync error: partial transfer (code 23) at io.c(143)
.
All seems OK
tamtam:/etc# ls -ltr /etc/rsyncd.secrets
-rw------- 1 root root 23 May 7 18:12
/etc/rsyncd.secrets
tamtam:/etc# id
uid=0(root) gid=0(root) groups=0(root)
--
To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html