I have a host where the
yum.repos.d directory contains a yum repository definition file that has a password protected repository and so has a plain text username and password.
This is not a big deal since this host does not have user accounts other than the administrator with sudo privileges. However, I had the urge to make this file readable to root only, and I realized right away I couldn't do that:
Error: Error accessing file for config file://///etc/yum.repos.d/myrepo.repo
Which makes sense, but now I am curious if yum was designed to allow something like user profiles.
How can I have a repository configuration file which is only loaded under a certain user? If this is not possible, does that mean that all users of a system must share all the repository definitions? If I had a private repository for which I did not want to share the password, am I forced to delete that repository definition file after using the repository?