To fix this -- and this is for public mirror users only -- run this command:
- Code: Select all
su -c 'chmod 644 /etc/yum.repos.d/yellowdog*'
(it will ask for your root password)
Then you should be able to run a yum search as regular user.
For example, here's what happens on a default YDL 6.1 install without entering anything during the ydl.net config portion of the install:
Checking the initial permissions -- readable by root only:
- Code: Select all
[billb@localhost ~]$ ls -la /etc/yum.repos.d
total 28
drwxr-xr-x 2 root root 4096 Aug 20 10:10 .
drwxr-xr-x 94 root root 12288 Jan 12 12:22 ..
-rw------- 1 root root 208 Jan 12 12:07 yellowdog-base.repo
-rw------- 1 root root 214 Jan 12 12:07 yellowdog-extras.repo
-rw------- 1 root root 217 Jan 12 12:07 yellowdog-updates.repo
Trying to run yum search as regular user:
- Code: Select all
[billb@localhost ~]$ yum search gedit
Loading "installonlyn" plugin
Config Error: Error accessing file for config file://///etc/yum.repos.d/yellowdog-extras.repo
Fixing permissions:
- Code: Select all
[billb@localhost ~]$ su -c 'chmod 644 /etc/yum.repos.d/yellowdog*'
Password:
Checking permissions again:
- Code: Select all
[billb@localhost ~]$ ls -la /etc/yum.repos.d
total 28
drwxr-xr-x 2 root root 4096 Aug 20 10:10 .
drwxr-xr-x 94 root root 12288 Jan 12 12:22 ..
-rw-r--r-- 1 root root 208 Jan 12 12:07 yellowdog-base.repo
-rw-r--r-- 1 root root 214 Jan 12 12:07 yellowdog-extras.repo
-rw-r--r-- 1 root root 217 Jan 12 12:07 yellowdog-updates.repo
And running a yum search as regular user again:
- Code: Select all
[billb@localhost ~]$ yum search gedit
Loading "installonlyn" plugin
gedit-root.ppc 1-0.ydl.1 base
Matched from:
gedit-root
A program that allows the user to edit system text configuration
files as root. Basically configures the regular gedit program to
prompt for root password and starts gedit with elevated privleges.
gedit-devel.ppc 1:2.16.0-9.ydl6.1 base
Matched from:
gedit-devel
The files needed for developing plug-ins for the gEdit editor.
gEdit is a small but powerful text editor for the GNOME GUI desktop.
This package allows you to develop plug-ins that work within gEdit.
Install gedit-devel if you want to write plug-ins for gEdit.
http://gedit.sourceforge.net/
gedit.ppc 1:2.16.0-9.ydl6.1 base
Matched from:
gedit
gEdit is a small but powerful text editor for GNOME
gEdit is a small but powerful text editor designed specifically for
the GNOME GUI desktop. gEdit includes a plug-in API (which supports
extensibility while keeping the core binary small), support for
editing multiple documents using notebook tabs, and standard text
editor functions.
You'll need to have GNOME and GTK+ installed to use gEdit.
http://gedit.sourceforge.net/
gedit.ppc 1:2.16.0-9.ydl6.1 installed
Matched from:
gedit
gEdit is a small but powerful text editor for GNOME
gEdit is a small but powerful text editor designed specifically for
the GNOME GUI desktop. gEdit includes a plug-in API (which supports
extensibility while keeping the core binary small), support for
editing multiple documents using notebook tabs, and standard text
editor functions.
You'll need to have GNOME and GTK+ installed to use gEdit.
http://gedit.sourceforge.net/
gedit-root.ppc 1-0.ydl.1 installed
Matched from:
gedit-root
A program that allows the user to edit system text configuration
files as root. Basically configures the regular gedit program to
prompt for root password and starts gedit with elevated privleges.