X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_RW,TW_WX,TW_XR,TW_XV,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Wed, 11 Aug 2010 13:09:03 -0400 Message-ID: Subject: tar permission errors when copying directories to a server From: Mirko Vukovic To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Hello, I use tar to backup my files to a server using a command > tar cf - . --exclude-from=./.backup-exclude | (cd "$dest_dir"; tar xvf -) > "$log_file" After finally upgrading to 1.7, I started getting the following errors: tar: ./dir-name1: Cannot change mode to rwx-w--w-: Permission denied tar: ./dir-name2: Cannot change mode to rwx-w--w-: Permission denied tar: .: Cannot change mode to rwxrw-rw-: Permission denied tar: Exiting with failure status due to previous errors tar exited with error status 1 on Wed Aug 11 12:56:39 EDT 2010 Irrespective of these errors, tar does copy all the files. The problem is that I use the exit status to check whether the backup succeeded or not and whether to reset the time-stamp file. So, the error status is important to me. I tried the same script to copy files from one location to another on my machine, and it works without errors. I am guessing that the problem has something to do with permissions on the server. How would I go about fixing those? Thank you, Mirko -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple