Re: rsync password-file format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sometimes   another set of eyes to see!!

the list is helpful

On Thu, Jun 26, 2025, 5:36 PM Robert Moskowitz via users <users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:


On 6/26/25 5:26 PM, Jeffrey Walton wrote:
> On Thu, Jun 26, 2025 at 5:21 PM Robert Moskowitz via users
> <users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>> I *AM* running rsyncd on the target server.
>>
>> If I provide:
>>
>> rsync -ah --stats /home/rgm/r/ rsync://rgm@homestor/rgm/r/
>>
>> I get prompted for the password in the /etc/rsyncd.secrets file, and it
>> works.
>>
>> I now create a local file ~/rsync.pswd with chmod 440, and run:
>>
>> rsync -ah --password-file=/home/rgm/rsync.pswd --stats /home/rgm/r/
>> rsync://rgm@homestor/rgm/r/
>>
>> it fails with:
>>
>> @ERROR: auth failed on module rgm
>> rsync error: error starting client-server protocol (code 5) at
>> main.c(1850) [sender=3.4.1]
>>
>> rsync.pswd format is:
>>
>> rgm:password
>>
>> where password is what is in the server's rsyncd.secrets and what I
>> provided to the interactive prompt.
>>
>> What am I missing here?
> Form rsync(1) man page:
>
>      --password-file
>
>        This option allows you to provide a password in a file for
>        accessing an rsync daemon. The file must not be world readable. It
>        should contain just the password as a single line.

I read that description a number of times, and just did not catch that
ONLY the password is in the file....


Sheesh.

Well now it works!

Thanks

--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux