From owner-freebsd-questions Tue Jul 9 9:35:16 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2672637B400 for ; Tue, 9 Jul 2002 09:35:13 -0700 (PDT) Received: from melete.ch.intel.com (chfdns02.ch.intel.com [143.182.246.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E26B43E3B for ; Tue, 9 Jul 2002 09:35:12 -0700 (PDT) (envelope-from pavan.balaji@intel.com) Received: from fmsmsxvs042.fm.intel.com (fmsmsxvs042.fm.intel.com [132.233.42.128]) by melete.ch.intel.com (8.11.6/8.11.6/d: solo.mc,v 1.42 2002/05/23 22:21:11 root Exp $) with SMTP id g69GZBW11724 for ; Tue, 9 Jul 2002 16:35:11 GMT Received: from fmsmsx29.FM.INTEL.COM ([132.233.42.29]) by fmsmsxvs042.fm.intel.com (NAVGW 2.5.2.11) with SMTP id M2002070909355007587 ; Tue, 09 Jul 2002 09:35:50 -0700 Received: by fmsmsx29.fm.intel.com with Internet Mail Service (5.5.2653.19) id ; Tue, 9 Jul 2002 09:35:11 -0700 Message-ID: <3D386AED1B47D411A94300508B11F18703BC5B67@fmsmsx116.fm.intel.com> From: "Balaji, Pavan" To: "'Peter'" , "'freebsd-questions@FreeBSD.ORG'" Subject: RE: umask -- tar extracting files with same permissions Date: Tue, 9 Jul 2002 09:35:08 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, tar works fine on Linux -- not sure what the problem with FreeBSD is? You can however use "rdist" instead: create a file called 'distfile' /usr/mydir -> ( machine1 machine2 machine3 ) install /home/usr/mydir; except /usr/mydir/dontcopyfile1; except /usr/mydir/dontcopyfile2; And run "rdist". On my machine rsh gives a problem, so I use "rdist -P ssh", to force it to use ssh. You can check other options on man rdist. The above distfile copies the directory /usr/mydir on the current machine to the directory /home/usr/mydir to the destination machines (machine1 machine2 machine3) recursively and preserving the permissions and ownerships. 'except' tells the command to skip copying those files -- you can disregard that if you need to copy all files. Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -----Original Message----- > From: Peter [mailto:fbsdq@kuyarov.org] > Sent: Tuesday, July 09, 2002 3:08 AM > To: freebsd-questions@FreeBSD.ORG > Subject: umask -- tar extracting files with same permissions > > > Hello, > One one machine my name is peter while on another it's > peterk -- I have a website [cgi and all] on the peterk > one....I tar zcvf that site and uploaded it to the peter one. > On the peter one my umask is at 0137 .. I untarred the > site...well.....all the files got screwed up...like my cgi's > were made unexcetuable, my directories unlistable, world > writeable files unwriteable, etc. -- what am I doing wrong? I > would like to be able to move files from one computer to > another retaining permissions [chmod] [owner/group I don't > care - whoever untars it]. Can someone please explain to me > how this works and what I'm doing wrong/right/what should I be doing? > > Thanks > Peter > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message