Re: root use of yum (given "umask 077") causes build trouble

James Antill <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Jim Meyering <[email protected]> writes:

> James Antill wrote:
>> Jim Meyering <[email protected]> writes:
>
> Thanks, James.
>
> I've just run this on a rawhide system:
>   koji download-build yum-3.4.0-1.fc16
> then this to install the 3 .rpm files:
>   yum install yum-*
>
> To test it, I set the permissions:
>   chmod go+r /var/lib/yum/rpmdb-indexes/*
> then ran this (with my usual umask of 077):
>   yum upgrade --skip-broken
> It didn't install anything (but did report dependency problems with
> many boost-* js, js-devel, openbios-common packages), but did change
> the permissions:
>
>   $ ls -l /var/lib/yum/rpmdb-indexes
>   total 152
>   -rw-rw-rw-. 1 root root   2878 Apr 16 00:07 conflicts
>   -rw-r--r--. 1 root root  40862 Apr 16 00:06 file-requires
>   -rw-r--r--. 1 root root 106402 Apr 16 00:06 pkgtups-checksums
>   -rw-r--r--. 1 root root     45 Apr 16 00:06 version
>
> Oops.  Now "conflicts" is world writable.

 Thanks, for some reason I thought I read that the default open mode
was 0644 in python ... but it's 0777. I thought I'd tested it too :(.
 Anyway changing the umask setting from 0 to 022 should fix this (new
Fedora rawhide release, today).

-- 
James Antill -- [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.