X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: "H.S." Subject: Re: permissions problem cygwin<-->Linux Date: Mon, 05 Dec 2005 23:44:42 -0500 Lines: 44 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051007 Debian/1.7.12-1 In-Reply-To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com H.S. wrote: > I am backing up Windows box directories on a Linux rsync server. Backing > up is going good for now. How do I deal with permission issues? > > Currently, a Windows user is not able to read files from the backups > directory in the Linux box. I am using the -a flag in rsync command. Is > there anyway (other than doing a chmod in Linux) I preserver permissions > and let Windows users read their backup file (when they want to recover > them)? Or, if I cannot preserve their permissions, can I use some other > permissions (perhaps by not using -a in rsync)? > > Anyother method to deal with this issue? > > Thanks, > ->HS > > > It appears that I more or less solved the problems: 1. The D drive was "shared" (don't know why) and the folders in it (which were being backed up) were set to ReadOnly and did not have full permission of the intended owner. Once that was set(unshared the drive, gave full permissions to the owners), the backups partly worked, in the sense that the permissions were now set up so that a user could recover files from the backup server using sftp - but rsync was still hanging. BTW, I have same user names for the users of the laptop on the laptop and on the backup server (Linux box) -- not sure if this matters. 2. I had to delete the shortscuts that were on the Desktop of a user, pointing towards folders on D: drive. These removed the rsyng hangs, well almost. 3. Some folders had temporary leftover files of MS Word (with "~$xhy.tmp" like names). Deleted all those temporary files and now the backups seem to be working fine. I hope this helps others. BTW, how do I make a rule for rsync to exlude any shortcuts in Windows? Is there any command option that I can give it to do so? ->HS -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/