Re: root permissions for check-update?

Phil Clayton <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
James Antill wrote:
> Phil Clayton <[email protected]> writes:
> 
>> Hi,
>>
>> Under yum-3.2.27-2.fc12, I find
>>
>>   yum check-update
>>
>> correctly reports available updates when run as a non-root
>> user. However, with yum-3.2.28-5.fc14 on another machine, the above
>> command returns no packages when run as a non-root user and returns 0,
>> i.e. no packages available.  It produces the expected result only when
>> run as root.  Should check-update be run as root now?
>>
>> (If check-update should be run as root, perhaps it should say so to
>> non-root users and return 1?  For non-root users, it currently looks
>> like there are never any updates available!  That had me confused for
>> a while...)
>>
>> Alternatively, have I done something stupid to make this happen...?
> 
>  It should work the same, for root and non-root. However because the
> user can't write to root's cache, sometimes the caches will be out of
> sync. Is that the problem ... or is this happening consistently?

Hi James,

It was consistent in the sense that as I alternated between non-root and 
root users, the command repeatedly gave the behaviour described above. 
So check-update as root didn't right things.  However, performing the 
update seems to have solved this.  (I did try a clean all but that 
didn't help.  If it happens again, I'll try makecache...)

Thanks
Phil
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.