From owner-freebsd-questions Tue Jul 9 15:48:43 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 1123937B400 for ; Tue, 9 Jul 2002 15:48:40 -0700 (PDT) Received: from njam.dhs.org (bkg8100by4lk.bc.hsia.telus.net [142.173.16.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 632A343E3B for ; Tue, 9 Jul 2002 15:48:39 -0700 (PDT) (envelope-from viktorlazlo@telus.net) Received: from localhost (viktorlazlo@localhost) by njam.dhs.org (8.11.6/8.11.6) with ESMTP id g69MmQR00700; Tue, 9 Jul 2002 15:48:27 -0700 (PDT) (envelope-from viktorlazlo@telus.net) X-Authentication-Warning: njam.dhs.org: viktorlazlo owned process doing -bs Date: Tue, 9 Jul 2002 15:48:26 -0700 (PDT) From: Viktor Lazlo X-X-Sender: viktorlazlo@njam.dhs.org To: Peter Cc: freebsd-questions@FreeBSD.ORG Subject: Re: umask -- tar extracting files with same permissions In-Reply-To: <20020709020826.4fff7a5f.fbsdq@kuyarov.org> Message-ID: <20020709154119.X504-100000@njam.dhs.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Tue, 9 Jul 2002, Peter wrote: > 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 > Did you use the option -p in your tar command line? That should ensure that the original permissions are carried forward when files are extracted from the archive, although if the same user does not exist on both systems I believe ownership is assigned to the user with the same numeric ID by default. Cheers, Viktor To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message