LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Yum.conf is read only? (https://www.linuxquestions.org/questions/linux-newbie-8/yum-conf-is-read-only-239238/)

Charlie Chan 10-05-2004 09:43 PM

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.:newbie:

darthtux 10-05-2004 09:53 PM

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

To change the permissions on any file to make them world writable.
chmod o+w filename

Charlie Chan 10-06-2004 07:15 AM

I did that all along the way, no help!:(

Lleb_KCir 10-06-2004 11:27 AM

find the directory it is in and type:

Code:

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

Code:

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

example:

Code:

ray@media:~$ su -
Password:
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.


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