Ask Your Question

How do I modify contents of the /etc/yum.repos.d folder?

asked 2013-04-22 05:01:33 -0500

Sasmit gravatar image

updated 2014-09-28 11:20:32 -0500

mether gravatar image

I want to save a file in etc/yum.repos.d/ but fedora is denying me permission saying its a root directory and only root user can acces it. I am the root user so how do i log into it and make changes to that directory.?

edit retag flag offensive close merge delete



You need root access to add to yum.repos.d....If you don't have root access, then I guess you are not allowed to add any entries to yum.repos.d!

anishjp gravatar imageanishjp ( 2013-04-22 06:47:02 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-04-22 07:47:21 -0500

Rabin gravatar image

On the terminal window run:

sudo -i  # you will be asked for you'r own password, only works if you in the sudousers file
# if you have the root passowrd you can use this command
su - # switch user to root
cd /etc/yum.repo.d/
wget "link-to-your-repo-file.repo"
edit flag offensive delete link more

answered 2013-04-22 06:31:05 -0500

Sasmit gravatar image

When you switch on....and the login page appears, there is an option called "not listed". Click it and then enter 'root' in the username bar and press enter. When prompted for a password, type the root password you had created while installation.

edit flag offensive delete link more


login to the GUI as root is a very bad suggestion!

The IceMan Blog gravatar imageThe IceMan Blog ( 2013-04-22 07:49:49 -0500 )edit

well..I could make changes to the yum.repos.d directory

Sasmit gravatar imageSasmit ( 2013-04-22 08:23:56 -0500 )edit

Question Tools

1 follower


Asked: 2013-04-22 05:01:33 -0500

Seen: 4,769 times

Last updated: Apr 22 '13