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.

# dpkg -l tar
||/ Name           Version        Description
+++-==============-==============-============================================
ii  tar            1.13.93-4      GNU tar
# touch testfile
# chown 6666:7777 testfile
# ls -l testfile
-rw-rw-r--  1 6666 7777     0 Nov 11 10:01 testfile
# tar cvf testfile.tar testfile
testfile
# rm testfile
rm: remove regular empty file `testfile'? y
# tar xvf testfile.tar
testfile
# ls -l
-rw-rw-r--  1 6666 7777     0 Nov 11 10:01 testfile

-- 
        Dan Nelson
        [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to