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

Re: Re: Ownership of files installed by an rpm



Why not use the $USER environment variable ?

Dave

> 
> From: Jeff Johnson <jbj@redhat.com>
> Date: 2002/07/15 Mon AM 10:54:39 MST
> To: rpm-list@redhat.com
> Subject: Re: Ownership of files installed by an rpm
> 
> On Mon, Jul 15, 2002 at 07:30:07PM +0200, Andrea Sciaba' wrote:
> > Hi,
> > is there a way to make all the files installed by an rpm to be owned by 
> > the user installing the rpm itself? Of course, I am interested in the 
> > case where such user is not root.
> > 
> > The only mechanism to decide the ownership I am aware of is the %attrib 
> > macro, but as far as I know, the userid must be hard-coded in the spec 
> > file, and this is not useful to me.
> 
> The easiest way to achieve is to rip the payload out of the package
> and feed to cpio:
> 	mkdir /var/tmp/xxx
> 	cd /var/tmp/xxx
> 	rpm2cpio foo*.rpm | cpio -dim
> 
> 73 de Jeff
> 
> -- 
> Jeff Johnson	ARS N3NPQ
> jbj@redhat.com (jbj@jbj.org)
> Chapel Hill, NC
> 
> 
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/rpm-list
> 






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