unpacking as root gives weird ownership...

Andy Firman andy at firman.us
Thu Nov 11 16:27:07 GMT 2004


On Thu, Nov 11, 2004 at 10:11:37AM -0600, Dan Nelson wrote:
> In the last episode (Nov 11), Andy Firman said:
> > On Thu, Nov 11, 2004 at 09:52:55AM -0600, Dan Nelson wrote:
> > > > 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.
> > 
> > Hmm.  I am Linux guy getting into FreeBSD. This is new to me and this
> > doesn't happen on any Linux flavor I have been on.
> 
> It's been standard procedure for tar as far back as I can remember, on
> all OSes.

You are right.  I spoke too quickly as I am just starting to work as root
more and more.  Normally everything is done with sudo.

When I use the -o switch it still won't unpack as root:wheel.

Doesn't really matter, just being curious.

Thanks,
Andy




More information about the freebsd-questions mailing list