History infomation

Ville Skyttä ville.skytta at iki.fi
Sat Oct 12 16:07:17 UTC 2013


On Fri, Oct 11, 2013 at 5:25 PM, Josh Bressers <bressers at redhat.com> wrote:
> ----- Original Message -----
>> On Thu, 2013-10-10 at 09:04 +0200, tim.lauridsen at gmail.com wrote:
>> > Is there any reason while the yum history infomation is not available when
>> > running as not root, all other information is available
>>
>>  It all depends on the permissions on /var/lib/yum/history, it wasn't
>> that way by default but then:
>>
>>
>> commit adf5ce0d5d8f0066515ca85494f8b217500d7ad2
>> Author: Seth Vidal <skvidal at fedoraproject.org>
>> Date:   Wed Dec 9 13:15:08 2009 -0500
>>
>>     make sure history dbs are readable only by root - suggested by Josh
>> Bressers
>>
>> ...my guess is that it was to do with the scriptlet output? Josh do you
>> know / can you remember?
>>
>
> I looked through my mail from that time, nothing was there (sadly I lack
> IRC logs).
>
> I honestly have no idea why we would have done this. It seems like a silly
> change. I'll try to remember why this was done, but I don't see why it can
> be undone if you so desire.

Note also:

$ ls -l /var/log/yum.log
-rw-------. 1 root root 302187 Oct 10 15:57 /var/log/yum.log

If the history db is made world readable I suppose there's little
reason to keep root-only restrictions on yum.log.


More information about the Yum-devel mailing list