From owner-freebsd-questions Tue Jul 9 20:15:28 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 431DC37B400 for ; Tue, 9 Jul 2002 20:15:24 -0700 (PDT) Received: from mail4.nc.rr.com (fe4.southeast.rr.com [24.93.67.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8070043E52 for ; Tue, 9 Jul 2002 20:15:23 -0700 (PDT) (envelope-from bts@babbleon.org) Received: from i8k.babbleon.org ([66.57.86.84]) by mail4.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Tue, 9 Jul 2002 23:15:14 -0400 Received: by i8k.babbleon.org (Postfix, from userid 111) id 5048ABA05; Tue, 9 Jul 2002 23:15:03 -0400 (EDT) Content-Type: text/plain; charset="iso-8859-1" From: Brian T.Schellenberger To: "Balaji, Pavan" , "'Peter'" , "'freebsd-questions@FreeBSD.ORG'" Subject: Re: umask -- tar extracting files with same permissions Date: Tue, 9 Jul 2002 23:15:02 -0400 X-Mailer: KMail [version 1.3] References: <3D386AED1B47D411A94300508B11F18703BC5B67@fmsmsx116.fm.intel.com> In-Reply-To: <3D386AED1B47D411A94300508B11F18703BC5B67@fmsmsx116.fm.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020710031503.5048ABA05@i8k.babbleon.org> 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 tar normally works fine on FreeBSD, too, I'm quite sure of that. Did you make the tar archive under Linx and extract under FreeBSD? Any special options you used? Something's peculiar about this. On Tuesday 09 July 2002 12:35 pm, Balaji, Pavan wrote: | 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 -- Brian, the man from Babble-On . . . . bts@babbleon.org (personal) http://www.babbleon.org http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message