Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I can't run a yum command on my server without getting this:

CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf

This is what my yum.conf looks like:

# This is the fedorafaq.org yum.conf for Fedora Core 5.
#
# Note that you also need the rest of the configuration
# as described at http://www.fedorafaq.org/#yumconf

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

This is what my yum.repos.d looks like:

fedora.repo
fedora-updates.repo
fedora-updates-testing.repo

The permissions on those files are 0666 and it won't allow me to make them root:root

share|improve this question
    
If you are running Fedora Core 5, its time to upgrade –  Simon Sheehan Jan 21 '13 at 4:12
add comment

1 Answer

If you are unable to change the file to root:root; and you are root. Then the most likely situation is that the immutable parameter has been set on the file. Confirm and change the file's attributes.

# lsattr /etc/yum.conf
----i--------e-- /etc/yum.conf 

IF this is the output from the previous command, do the following.

# chattr -i /etc/yum.conf
# lsattr /etc/yum.conf
-------------e-- /etc/yum.conf
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.