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

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

 



Jim Meyering <jim@xxxxxxxxxxxx> writes:

> James Antill wrote:
>> Jim Meyering <jim@xxxxxxxxxxxx> 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 -- james@xxxxxxx
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux