unpacking as root gives weird ownership...

Dan Nelson dnelson at allantgroup.com
Thu Nov 11 15:53:06 GMT 2004


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 at allantgroup.com


More information about the freebsd-questions mailing list