YDL 6.1 permissions on repo files

General discussion Forum. All YDL related question which are not Install or Beginner questions.

YDL 6.1 permissions on repo files

Postby billb » 12 Jan 2009, 18:59

On YDL 6.1, the repo files (yellowdog-base.repo, yellowdog-extras.repo, and yellowdog-updates.repo in /etc/yum.repos.d), are installed with the permissions set incorrectly. For ydl.net enhanced users, it is by design that these files are only readable by root, but for public mirror users, the permissions should be 644 instead of 600. That way you can run yum search and yum check-update as a regular user, as on a default install of YDL 6.0.

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.
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Return to General

Who is online

Users browsing this forum: No registered users and 42 guests

cron