Re: Numbers Ownership after tarring

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Les Mikesell wrote:

On Thu, 2005-04-14 at 02:41, Paul Howarth wrote:



chown is the specialised tool for changing ownership of files and tar is
the specialised tool for handling archives. It's good that they're
separate. If you want a facility to do both at the same time, how about
writing a script that uses tar to extract the files and then uses chown
to change the ownership of the files?



GNUtar has an --owner=USER option if you want to set the ownership as the archive is created, and when files are extracted by root it should default to setting the file ownership to match the user named in the source if a matching user name exists on the destination system. Perhaps the users didn't exist at the time of extraction so the numeric uids were used instead.



Hi All,

yes, yes, that's what I thought it should do. Funny, when extracting as root, it gave those weird numbers as ownership. Where as, I was sure it should give the ownership as root, as I was extracting as root. Am I correct in my understanding of how it should work.? Cheers.

Mark Sargent.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux