Re: Compiling src.rpms -perms


Subject: Re: Compiling src.rpms -perms
From: Mike Tibor (tibor@lib.uaa.alaska.edu)
Date: Tue Feb 19 2002 - 19:57:38 AKST


On Tue, 19 Feb 2002, Eric Fortner wrote:

>
> Thanks Mike for the response.......
>
> And Yes! I am using RedHat 7.2 Professional distro...
>
> I have seen the specs and the tarballs you spoke of,
> just one question, say for instance I set my root umask to 027
> and the users umask to 027 then I install a general program[rpm] it
> will install so root.root is u+g and no rwx for o[world]
> Now I change the specs and or top level Makefile in the Tarball
> this is also going to come into play too....right!
>
> I am low on resource practice boxes top play with I spent all of my
> money on scsi and XP/Dragon boards for work and servers at work.....so
> I am kind of chicken to blow up a box at work...........
>
> On the other hand Mike I am not looking for a hand-holding session either
> I know your a/or used to be a Redhat server admin/user and might know the
> default RH scheme in permissions.............
>
> Thanks again for the response sir!

No problem! There's actually a way to check the resulting binary rpms
before you install them, so you don't have to risk any harm to the build
box. After you edit the Makefile, rebuild the tarball and build the
binary rpm, do something like this:

cd /usr/src/redhat/RPMS/i386
rpm -qplv package-1.23-1.i386.rpm | less

That'll show you the perms and ownership info for every file the rpm
contains--that way you can see exactly what it'll install before it does
so.

Mike

-- 
Mike Tibor         Univ. of Alaska Anchorage    (907) 786-1001 voice
Network Technician     Consortium Library         (907) 786-6050 fax
tibor@lib.uaa.alaska.edu       http://www.lib.uaa.alaska.edu/~tibor/
http://www.lib.uaa.alaska.edu/~tibor/pgpkey  for PGP public key



This archive was generated by hypermail 2a23 : Tue Feb 19 2002 - 19:57:40 AKST