LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-06-2013, 01:47 PM   #1
lce411
Member
 
Registered: Jul 2012
Posts: 50

Rep: Reputation: Disabled
Yum only working as root


We have a working environment here at work that I patch regularly. We have a local admin account (not root) and it's entered into the sudoers file. I can do almost everything with this local admin account, using sudo, but for some reason I can't run a yum update with it. I am able to run yum update with the local account on 15 other servers, but there are 3 which will only run as root. I've cleared all the yum cache and I've verified both the sudoers file and /etc/group file match the working ones. Any idea why yum won't work with a sudo command?
 
Old 06-06-2013, 01:59 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Please show us the actual output. Errors help a lot.
 
Old 06-06-2013, 02:16 PM   #3
lce411
Member
 
Registered: Jul 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
Below is the output. I ran the command as root and got no errors at all. I failed to mention this in my original post, but we are going through a proxy (Squid), but I verified the servers in question are entered in there. Seeing the "urlopen error" reminded me about the proxy being checked.

Code:
[USTC_admin@ustc-syslog1 ~]$ sudo yum update
[sudo] password for USTC_admin:
https://ustc-yum.customer.com/rhel-x86_64-server-5/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
https://ustc-yum.customer.com/rhel-x86_64-server-supplementary-5/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
https://ustc-yum.customer.com/epel/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
https://ustc-yum.customer.com/puppetdeps/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
https://ustc-yum.customer.com/puppetlabs/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
https://ustc-yum.customer.com/rubyworks/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
Setting up Update Process
No Packages marked for Update
 
Old 06-06-2013, 06:01 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
what's "ustc-yum.customer.com"? that domain has no DNS entry at all. looks like an internal server that you control?
 
Old 06-07-2013, 08:49 AM   #5
lce411
Member
 
Registered: Jul 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
I didn't want the actual domain name in there, so I inserted a generic one.
 
Old 06-07-2013, 10:00 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
er... ok... so it's private either way?? so if it's private then that's up to you to fix that server... does the URL work from, say, curl?
 
  


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 install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
Software working in root but not working in user accounts Heshsham Linux - Software 3 05-29-2010 03:58 AM
Yum not working at all due to /usr/bin/yum syntax error aheusdens Linux - General 1 04-09-2010 05:15 PM
root=UUID or root=LABEL not working actmnophn Linux - Newbie 4 02-23-2009 07:37 PM
Can I run yum without root privileges??? jainforall Linux - Software 3 10-22-2007 01:18 AM


All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration