LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Chmod , permission denied (https://www.linuxquestions.org/questions/linux-newbie-8/chmod-permission-denied-785694/)

theWolve 01-29-2010 04:41 PM

Chmod , permission denied
 
I was attempting to get Fable:The Lost Chapters installed on my computer and one of the tips was to copy the contents of the disk over to my machine and then install from there. Having tried this and failed once again I went to delete it only to find that I can not.
Attempting everything from:
sudo chmod 666 -R Fable
to
plain old ls
I can not read this directory, I can not edit its permissions and I can not even view it's contents.
i.e

jenny@Jennys-laptop:~$ ls -l Fable/
ls: cannot access Fable/directx9: Permission denied
ls: cannot access Fable/Fable - The Lost Chapters: Permission denied
ls: cannot access Fable/0x0409.ini: Permission denied
ls: cannot access Fable/Autorun.inf: Permission denied
ls: cannot access Fable/00001.tmp: Permission denied
ls: cannot access Fable/00002.tmp: Permission denied
ls: cannot access Fable/Disk1C~1.cab: Permission denied
ls: cannot access Fable/manuals: Permission denied
ls: cannot access Fable/autorun.exe: Permission denied
total 0
-????????? ? ? ? ? ? 00001.tmp
-????????? ? ? ? ? ? 00002.tmp
-????????? ? ? ? ? ? 0x0409.ini
-????????? ? ? ? ? ? autorun.exe
-????????? ? ? ? ? ? Autorun.inf
d????????? ? ? ? ? ? directx9
-????????? ? ? ? ? ? Disk1C~1.cab
d????????? ? ? ? ? ? Fable - The Lost Chapters
d????????? ? ? ? ? ? manuals

Does anyone have any suggesting on how to remove this?

ozanbaba 01-29-2010 04:55 PM

can you try ls -l -d Fable for getting its permissions with ownerships?

theWolve 01-29-2010 05:32 PM

drw-rw-rw- 5 jenny jenny 4096 2010-01-29 22:18 Fable

That's what I get.

ozanbaba 01-29-2010 05:39 PM

chmod +x Fable

theWolve 01-29-2010 07:54 PM

Set to execute as well now, sorry thought I had done that before posting (had done 666 which didn't work for some reason I guess) . It still reports a permission denied error when trying to recurse chmod through its' sub-directories though.

win32sux 01-29-2010 08:47 PM

Quote:

Originally Posted by theWolve (Post 3845583)
Set to execute as well now, sorry thought I had done that before posting (had done 666 which didn't work for some reason I guess) . It still reports a permission denied error when trying to recurse chmod through its' sub-directories though.

666 only sets read and write permissions for everyone (not executable). The new errors are likely due to non-executable permissions on the subsequent directories. The simplest way to proceed here might just be to set 755 permissions on all the directories (assuming that is acceptable to you). You could do that with a command like:
Code:

find ./Fable -type d -exec chmod 755 {} \;
Of course, you should adjust the permissions depending on how restrictive you want to be.

worm5252 01-29-2010 10:06 PM

what about doing the chmod with sudo or root. It won't change ownership, just permissions.

Code:

sudo chmod -R 766 Fable


All times are GMT -5. The time now is 09:23 PM.