LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   yum check-update as normal user misses lots of updates (https://www.linuxquestions.org/questions/red-hat-31/yum-check-update-as-normal-user-misses-lots-of-updates-640849/)

humbletech99 05-08-2008 11:44 AM

yum check-update as normal user misses lots of updates
 
I've noticed that
Code:

yum check-update
when run as a normal user misses lots of updates even though there is no error, it just silently returns either no or few updates.

It seems that when run as a normal user it does detect updates available from the atrpms repository but not from the official RHEL repository for Red Hat Enterprise Linux 5.

I'd like to know if there is a way of making yum check-update run as a normal user without missing anything and without using sudo to make it run as root?

lazlow 05-08-2008 12:40 PM

You could always run as su - (su space dash).

I suspect the reason is that normally you do not want a user changing "core" components of the system. Essentially if they can do this they can take over the system.

humbletech99 05-09-2008 03:16 AM

No, no I understand that yum install or yum update should be root only actions but yum check-update only tells you what security updates are available and makes no modification to the system packages.

This is able to run as a normal user on both Gentoo and Debian but on Red Hat Yum doesn't seem to work properly like this, and worse it fails silently just telling you some or none of the updates so you could easily make the mistake of thinking that the system is up to date in security packages but really be vulnerable which is a terrible thing.

The reason I ask is that I have automated checks that are running for yum security updates and I'd be happier if those checks ran as a regular user rather than as root.


All times are GMT -5. The time now is 12:31 PM.