Re: Owner/group while building SRPMs

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

 



Non-root users can't change ownership of files by default.. What you could 
do is specify the ownership in the %files section of your spec file.


James S. Martin, RHCE
Contractor
Administrative Office of the United States Courts
Washington, DC
(202) 502-2394

rpm-list-bounces@xxxxxxxxxx wrote on 10/13/2004 01:27:06 PM:

> Is there a way while building an SRPM as a non-root user to change the
> ownership information of files taken from the SOURCES directory?  My
> initial ideas of adding the following to my ~/.rpmmacros file didn't
> work:
> 
>   %__cpio   /bin/cpio --no-preserve-owner
> 
> also tried:
> 
>   %__cpio   /bin/cpio --owner=root:root
> 
> 
> I didn't see any options in the rpmbuild man page that made sense
> either.
> 
> Thanks,
> Bryan
> 
> -- 
> Aspen Systems, Inc.    | http://www.aspsys.com/
> Production Engineer    | Phone: (303)431-4606
> bryans@xxxxxxxxxx      | Fax:   (303)431-7196
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux