Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-05-2004, 10:43 PM   #1
Charlie Chan
LQ Newbie
Registered: May 2004
Location: Byan, Texas USA
Distribution: Fedora 1 and it updates
Posts: 20

Rep: Reputation: 0
Question Yum.conf is read only?

I have never been able to change the yum.cfg file from read-only to write. I have tried several solutions given me but could not get them to work. It would help if I got a very detailed solution, one that does not leave out even one mouse click or key stroke. I have no intention of buying another book just to find out that it is of no help. I bought one $50 book that turned out to be server, server, and more on servers. I am out of space on my book shelves. So, would some one please provide a detailed approach to solving the problem.
Old 10-05-2004, 10:53 PM   #2
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
You have to be root. It's a bad idea to make it writable by others.
Enter root password
edit file

To change the permissions on any file to make them world writable.
chmod o+w filename
Old 10-06-2004, 08:15 AM   #3
Charlie Chan
LQ Newbie
Registered: May 2004
Location: Byan, Texas USA
Distribution: Fedora 1 and it updates
Posts: 20

Original Poster
Rep: Reputation: 0

I did that all along the way, no help!
Old 10-06-2004, 12:27 PM   #4
Senior Member
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
find the directory it is in and type:

ls -l *.conf
and see what the response is.

if the su and p/w did not help, try adding a ' -' without the ' ' marks after su

su -
then enter the root password then try to edit the file again. what are you using to edit the file? are you doing this via the GUI, if so you will need to login to your GUI as ROOT, not as your normal user.

open up a terminal, su - over to root, then open your editor from the terminal


ray@media:~$ su -
media:~# vi /etc/apt/sources.list
that is the commands i use to open and edit my apt-get list. for yum it would be just entering the correct path to your .conf file and it will work.

you can replace the vi with gedit or putty, or what ever you use as your editor. i use vi/vim as they are the only editors i know from the CLI, and gedit when i am touching the box and in GUI mode.


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.conf carlosinfl Fedora 1 01-29-2005 09:05 AM
FC2 yum updated to 2.1.11 need new yum.conf? peregrine2 Linux - Newbie 1 12-02-2004 08:14 AM
Example share in smb.conf doesn't work - read/write vs read only kleptophobiac Linux - Networking 0 09-01-2004 08:14 PM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 03:28 AM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 04:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:01 PM.

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