Using cygwin and rsync -- "password file must not be other-accessible"

13,481

I was able to fix this issue by changing the password-file line to the following:

–password-file=/cygdrive/c/cygwin/secret

Share:
13,481

Related videos on Youtube

ZeusNet
Author by

ZeusNet

Updated on September 18, 2022

Comments

  • ZeusNet
    ZeusNet over 1 year

    I've finally got an old computer of mine running as a backup server with Ubuntu 11.10. I'm planning on using it to backup my Windows 7 machine weekly using rsync. I've got cygwin installed, and rsync works perfectly. I'm following this guide, though, to create it as a scheduled task:

    http://justinsomnia.org/2007/02/how-to-regularly-backup-windows-xp-to-ubuntu-using-rsync/

    I have an rsync.bat script in C:\, and I can get the script to run correctly if I run it directly from the command line in Cygwin. However, when I try to run the rsync.bat script, I get this:

    ERROR: password file must not be other-accessible
    

    So it must be permissions issues on the secret file...I followed that guide and set the permissions to 600, and chowned it to Nate[the administrator]:SYSTEM.

    Any ideas on what might be causing the problem?

    EDIT: The file in question is actually on the Windows 7 machine. I figured I should ask here, since I'm dealing specifically with Cygwin and Rsync.

    After some googling, I found that there is a "strict modes" option that tells rsync not to check the permissions on the secret files, and that was added to accomodate Windows systems. However, after adding it and restarting the rsyn daemon, I still seem to be getting the same error. Here's my rysncd.conf file:

    [rsync]
    
    path = /home/nate/backups
    comment = My backups
    uid = nate
    gid = nate
    read only = false
    auth users = nate
    secrets file = /etc/rsyncd.secrets
    strict modes = false
    

    And the permissions on the secrets file, according to cygwin:

    -rw-------  1 Nate SYSTEM   11 Dec  9 18:48 secret
    

    I feel like I must be missing something really obvious.

    • n0pe
      n0pe over 12 years
      Is your filesystem NTFS or FAT? FAT32 filesystems do not support individual file permissions.
    • ZeusNet
      ZeusNet over 12 years
      Sorry, I don't think I clarified. The secret file that's giving me issues is the one on the Windows 7 machine, that's in the cygdrive. So it's NTFS.