LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-06-2010, 01:57 AM   #1
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
Effect of Windows ACL on rsync file access


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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid cannot access ACL (strtokfile error) lieb39 Linux - Server 10 08-25-2009 11:20 AM
ACl access permissions pramka SUSE / openSUSE 2 04-17-2008 12:24 PM
ACL Problem, Insufficient access (50) mesh2005 Linux - Networking 2 12-25-2005 07:20 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM
rsync & acl collen Linux - Software 0 12-10-2003 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration