Permissions Problem

YDL running on the Sony Playstation 3

Moderator: billb

Permissions Problem

Postby JJCOOLX420 » 11 Jan 2007, 14:07

Im a complete linux newb but Ive had Linux on my PS3 ever since it went public but i just recently found out about the Yum fixes buy editing the 3 files in the yum repos folder; the problem is when ever i goto try and edit these file i get denied because i dont have the right permissions. Ive also read on the boards where if i go into terminal and type SU then my password i can get thoses permissions, but that method still doesnt work for me. Am i doing something wrong?
User avatar
JJCOOLX420
ydl newbie
ydl newbie
 
Posts: 6
Joined: 04 Jan 2007, 08:16

Postby CronoCloud » 11 Jan 2007, 14:49

are you entering the same password that you used when you installed YDL?
User avatar
CronoCloud
Moderator
Moderator
 
Posts: 523
Joined: 21 Oct 2006, 05:48
Location: Central Illinois, USA

Postby JJCOOLX420 » 11 Jan 2007, 15:00

im almost 100% sure its the same password
User avatar
JJCOOLX420
ydl newbie
ydl newbie
 
Posts: 6
Joined: 04 Jan 2007, 08:16

Postby jerryyyyy » 11 Jan 2007, 16:44

Type su... for superuser to be sure you are root.

It will ask you for the password and you can enter it.

To change permissions useful command is:

chmod 777 filename ... read write for everyone
jerryyyyy
ydl beginner
ydl beginner
 
Posts: 41
Joined: 27 Dec 2006, 22:35
Location: Stanford, California

Postby JJCOOLX420 » 11 Jan 2007, 22:36

this is what happens when ever i use chmod 777:
im sure im doing something wrong but the file name is correct and the file is deffintly there?


[JJCOOLX@localhost ~]$ su
Password:
[root@localhost JJCOOLX]# chmod 777 yellowdog-base.repo
chmod: cannot access `yellowdog-base.repo': No such file or directory
User avatar
JJCOOLX420
ydl newbie
ydl newbie
 
Posts: 6
Joined: 04 Jan 2007, 08:16

Postby CronoCloud » 11 Jan 2007, 23:32

JJCOOLX420 wrote:this is what happens when ever i use chmod 777:
im sure im doing something wrong but the file name is correct and the file is deffintly there?


[JJCOOLX@localhost ~]$ su
Password:
[root@localhost JJCOOLX]# chmod 777 yellowdog-base.repo
chmod: cannot access `yellowdog-base.repo': No such file or directory


Are you sure the file you need to edit is in your home directory? Because that's where that command is being executed.

Try editing

/etc/yum.repos.d

instead
User avatar
CronoCloud
Moderator
Moderator
 
Posts: 523
Joined: 21 Oct 2006, 05:48
Location: Central Illinois, USA

Postby JJCOOLX420 » 11 Jan 2007, 23:59

No its in the icon called "Computer" the only thing i have in the home directory is Templates and my background picture

the complete directory for the files are:
Computer/Filesystem/ect/yum.repos.d/yellowdog-base.repo
Computer/Filesystem/ect/yum.repos.d/yellowdog-extras.repo
Computer/Filesystem/ect/yum.repos.d/yellowdog-updates.repo
User avatar
JJCOOLX420
ydl newbie
ydl newbie
 
Posts: 6
Joined: 04 Jan 2007, 08:16

Postby CronoCloud » 12 Jan 2007, 10:31

okay, see this prompt

[root@localhost JJCOOLX]#

that tells me you're root, which is good if you're wanting to edit a configuration file. but it also tells me it's in your "user" home directory.

Now your graphical file manager is abrstracting the file system for you, which is why it's saying:

Computer/Filesystem/ect/yum.repos.d/yellowdog-base.repo
Computer/Filesystem/ect/yum.repos.d/yellowdog-extras.repo
Computer/Filesystem/ect/yum.repos.d/yellowdog-updates.repo

When those files are really in the directory /etc/yum.repos.d

you see Linux commands only do what you tell them to do, tell them to edit a file that's not in the directory you're in without using the full path and you'll get

No such file or directory

So you either need to use fhe full path, or be in the directory with the files.

for example if I wanted to edit those files I would login as root

and then:

cd /etc/yum.repos.d

then an

ls

would list the flies

which should look like this:

yellowdog-base.repo
yellowdog-extras.repo
yellowdog-updates.repo

then you can edit them as needed:

nano yellowdog-base.repo

Now there's probably a way to put your graphical filemanager in root mode and then use it to open the files in a graphical editor but don't ask me how to do that. Ah wait, I'll google it, this should work:

open up a term and type in:

su -l

enter root password

type:

nautilus -f

that should get you a nautilus window with root permissions There might even be a menu option for a "super user mode" file manager window

And usually it's faster just to open up a term and edit with nano or vim or something.

And always remember to exit out of root terms and file manager windows when you're done with them. I'd tell you to use sudo instead of direclty using su but I find sudo annoying myself.
User avatar
CronoCloud
Moderator
Moderator
 
Posts: 523
Joined: 21 Oct 2006, 05:48
Location: Central Illinois, USA

Postby JJCOOLX420 » 12 Jan 2007, 13:14

Thx that last post did the trick and i could edit the files just fine :D
User avatar
JJCOOLX420
ydl newbie
ydl newbie
 
Posts: 6
Joined: 04 Jan 2007, 08:16


Return to Playstation 3

Who is online

Users browsing this forum: No registered users and 106 guests