LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 05-08-2008, 11:44 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
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?
 
Old 05-08-2008, 12:40 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
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.
 
Old 05-09-2008, 03:16 AM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yum update Transaction Check Error JonBL Linux - Software 21 08-10-2007 10:33 PM
yum update not getting updates glowe Linux - Software 7 02-24-2007 10:53 PM
yum check-update says no updates when there are updates? MarkEHansen Linux - General 7 12-29-2006 05:16 PM
yum update hung, now cant find updates Mehuge Fedora 2 06-28-2006 08:14 AM
Wanted - YUM Update strategy for home user JacekZ Linux - Newbie 3 06-22-2006 01:04 AM


All times are GMT -5. The time now is 02:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration