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

Re: Numbers Ownership after tarring



On Fri, Apr 15, 2005 at 11:35:56AM +0900, Mark Sargent wrote:
> >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.
> 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.

The message you replied to explains exactly how it works. If you're not
root, it can't make files belonging to someone else (that would be a
security breach). But if you *are* root, it does.

-- 
Matthew Miller           mattdm mattdm org        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>


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