Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Nov 2004 09:52:55 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Andy Firman <andy@firman.us>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: unpacking as root gives weird ownership...
Message-ID:  <20041111155254.GB4702@dan.emsphone.com>
In-Reply-To: <20041111154455.GA15623@akroteq.com>
References:  <20041111154455.GA15623@akroteq.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041111155254.GB4702>