tar under root

Vassili Dzuba vassili.dzuba at wanadoo.fr
Fri Jan 31 09:03:21 PST 2003


"Neven Has" <haski at sezampro.yu> a écrit dans le message de news:
20030131134840.GF513 at farm...
> On Thu, Jan 30, 2003 at 11:22:22PM +0100, Vassili Dzuba wrote:
> > nALFS is, I guess, often run as root
> > as the make install usually require root.
> >
> > I know that normally the unpacked archive is deleted
> > when completing the profile, but if it is not (e.g.
> > because the build failed), we have a directory created by
> > something like
> >
> >    tar -xzvf ...
> >
> > In this case, the owner of the directory will be the
> > creator of the tar archive, that does not exist on the current
> > machine.
> >
> > Maybe it would be cleaner to perform systematically
> > a chown -R 0:0 after the tar (if the current user is root, of course).
>
> Uh, no. I haven't looked into tar code, but I assume that those newer
> versions change the owner after extracting files. With the above, that
> would mean chown-ing twice. (And also changing the default tar
> behavior.) If I'm not missing something?
>
> But we could add an option to <unpack> for "--no-same-owner" ?
>

yes, i missed that one...
By i think this should be the defaut option, as it is the most frequent
situation
when installing some software produced elsewhere. We could have :

<unpack>
    <option>same-owner</option>
   ...
</unpack>

if we want the standard tar behaviour.


Vassili

>
> Neven
>
> --
> Unsubscribe: send email to listar at linuxfromscratch.org
> and put 'unsubscribe alfs-discuss' in the subject header of the message
>


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe alfs-discuss' in the subject header of the message



More information about the alfs-discuss mailing list