Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-19-2006, 11:26 AM   #1
LQ Newbie
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
CHMOD Command Issues

Sup Guys

I am currently trying to CHMOD a directory (entire directory) to 777. I type the following command

chmod 777 -R aDirectory/

I get the following prompt

"forums/anotherDirectory/anything.php" : Operation Not Permitted

Then of course it does not complete it's course. How do I set the permission I am assuming to the directory so I can have the ability to chmod an entire directory?? uhm.. that sound like the same Q.. lol u guys get the point

Note: I know it's bad to chmod everything but I need this for now. Ill go back later to fix it.

Thanks Guys!!
Old 09-19-2006, 11:42 AM   #2
LQ Newbie
Registered: Feb 2006
Posts: 7

Rep: Reputation: 0
Are you root? Use sudo

If u are, then i will let others help you, 'cause i cant

Old 09-19-2006, 11:48 AM   #3
LQ Newbie
Registered: Sep 2006
Posts: 2

Original Poster
Rep: Reputation: 0
No I am not root I am getting my hosting from a hosting company. But I appreciate it bro.
Old 09-19-2006, 12:22 PM   #4
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
Well then the directory may not be owned by you...

I'd try chowning the directory first:
chown user:group -R aDirectory/
chmod 777 -R aDirectory/
Remember that the -R on chmod and chown will recurse _all_ the way in, and so you might be hitting folders you were not expecting too. If you do have sudo access, just put sudo in front of either of those commands.

btw, I don't fully know the situation, but remember that 777 makes the directory totally open to anyone on the system. It may be overkill when a 655 or the like make work.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CHMOD Command dudeman41465 Linux - Software 1 09-26-2005 03:29 AM
CHMOD Issues Kenji Miyamoto Linux - General 3 12-31-2004 07:45 AM
chmod command linuxtesting2 Linux - Newbie 2 09-03-2004 01:02 PM
Chmod issues.... LinuxBAH Linux - General 6 06-25-2003 11:26 AM
Chmod command gogo Linux - General 2 09-24-2002 08:01 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration