From owner-freebsd-questions@FreeBSD.ORG Thu Nov 11 15:53:06 2004 Return-Path: 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 A05E216A4CE for ; Thu, 11 Nov 2004 15:53:06 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37B7C43D48 for ; Thu, 11 Nov 2004 15:53:06 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id iABFqtkC047085; Thu, 11 Nov 2004 09:52:55 -0600 (CST) (envelope-from dan) Date: Thu, 11 Nov 2004 09:52:55 -0600 From: Dan Nelson To: Andy Firman Message-ID: <20041111155254.GB4702@dan.emsphone.com> References: <20041111154455.GA15623@akroteq.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041111154455.GA15623@akroteq.com> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: unpacking as root gives weird ownership... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 15:53:06 -0000 In the last episode (Nov 11), Andy Firman said: > I can't figure out why, when I unpack something like > awstats-6.2.tgz it gives me this: > > # tar xvzf awstats-6.2.tgz > # ls -al > drwx------ 5 1007 513 512 Nov 6 06:03 awstats-6.2 > -rw-r--r-- 1 root wheel 860606 Nov 6 06:26 awstats-6.2.tgz > > I have used vipw to get rid of a bunch of users and am wondering > if that is a problem. User 1007 does not even exist. > There is a group 513. > > Why wouldn't it unpack with root, wheel ownership? Tarfiles extracted as root preserve the original ownership of the files. You can use the -o flag to make all the extracted files owned by root. -- Dan Nelson dnelson@allantgroup.com