I have a home LAN consisting of a number of Linux systems (Slackware 13.0 and 12.2) and a Windows system. The Windows system is used for work, and it belongs to my employer.
I mounted the hidden C drive share on one of my Linux systems something like this:
Code:
mount -t cifs //winbox/C$ -o username=winuser,password=winpass /mnt/winbox
In this example, winuser and winpass are my userid and password on the Windows system. There is no rsync client on the Windows box, and although I have admin rights, I don't want to add one. So I'm testing an rsync initiated from my Linux system to backup files from the cifs-mounted Windows system over to a backup directory on the Linux system. Since I have the Windows hidden C drive share mounted on my Linux system, it is effectively a local rsync. I may change this later to a remote rsync instead, but I'm just trying to work out bugs at this stage.
My rsync command is like this:
Code:
rsync -avz --filter=". /backups/rsync-filter-winbox" /mnt/winbox/ /backups/winbox
Since the share is mounted with the same logon user and password that I use to logon to Windows, I think rsync should be able to copy all of my files. But this doesn't seem to be the case. rsync can read most of my files on the Windows system, but it gets permission failures on some of them. All of the files in question are ones that I've created on the Windows system while logged in as winuser.
Here is the ACL from a file that rsync is successfully able to copy:
Code:
C:\Documents and Settings\winuser\My Documents\project\RE 2010 goals WINDOMAIN\WINUSER:F
WINDOMAIN\WINUSER:(OI)(CI)(IO)F
NT AUTHORITY\SYSTEM:F
NT AUTHORITY\SYSTEM:(OI)(CI)(IO)F
BUILTIN\Administrators:F
BUILTIN\Administrators:(OI)(CI)(IO)F
Here is the ACL from a file that rsync fails attempting to copy:
Code:
C:\Documents and Settings\winuser\My Documents\project\RE 2010 metrics WINDOMAIN\WINUSER:F
NT AUTHORITY\SYSTEM:F
BUILTIN\Administrators:F
The error return by rsync is like this:
Code:
rsync: send_files failed to open "/mnt/winbox/Documents and Settings/winuser/My Documents/RE 2010 metrics": Permission denied (13)
According to the Windows properties security information, winuser is the owner of both files. It is just the ACLs that differ.
Can anyone suggest why rsync works in the first case and gets an error in the second case?