Virtualmin repo question


First I would like write and say the new look of virtualmin/webmin is great! The same goes for the site!

I was wondering something about the virtualmin.repo. When I do the command yum repolist, I get:

base CentOS-6 - Base 6,575
extras CentOS-6 - Extras 50
updates CentOS-6 - Updates 1,250
virtualmin-universal Virtualmin Distribution Neutral Packages 60

I do not get the regular virtualmin repo that’s in the virtualmin.repo file and it is enabled. Here is what my file looks like:

name=RHEL/CentOS/Scientific $releasever - $basearch - Virtualmin

name=Virtualmin Distribution Neutral Packages

As you can see it is enabled just like ‘virtualmin-universal’. Not sure why ‘virtualmin’ doesn’t show up as well when I do yum repolist. Also, my virtualmin file is highlighted red in shell/terminal and to this day I do not know why it’s been always highlighted red. If you can shed some light on this as well that would be great!

Look forward. Thank you! :slight_smile:

Anyone? :slight_smile:


Are you using Virtualmin Pro, or GPL, on that server?

If you’re using Virtualmin GPL, you’d probably want to use the baseurl that’s commented out.

Also, be sure that you’re running the “yum” command as root.


Thanks Eric for the response,

Use GPL. By using the baseurl that’s commented out, now when doing yum repolist, the virtualmin rep shows up:

base CentOS-6 - Base 6,575
extras CentOS-6 - Extras 52
updates CentOS-6 - Updates 1,472
virtualmin RHEL/CentOS/Scientific 6 - x86_64 - Virtualmin 131
virtualmin-universal Virtualmin Distribution Neutral Packages 62

Just one more thing, is there a particular reason why in shell terminal the virtualmin.repo file is highlighted red?

Once again thank you! :slight_smile:


Hmm, that may be related to the permissions somehow… only root should be able to read that (since it can hold license information), so perhaps the ls colors are showing that in red.


Hello Eric,

Yes after checking out the permissions, you’re right, it has to do with permissions. Highlighted red because of setuid and setgid permissions. This is what the permissions look like for the virtualmin.repo file:

-rwSr-Sr-- 1 root root 635 Mar 26 19:28 virtualmin.repo

I am not sure how or when it happened… perhaps was like that when I got the server from my host provider or when I had an issue with yum updating once when I got the server basically and they had to log into my server to fix the issue with yum updating and perhaps they had to change permissions for the virtualmin.repo file.

Since virtualmin.repo is only meant to be read by root and since setting setuid and setgid is basically for allowing other users on the system to run/execute a file owned by root, would it be best to remove the setuid and setgid permissions then? virtualmin.repo is the only file set that way in my yum.repos.d directory.

Thank you for your time! Appreciate it! :slight_smile: