Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    9

    Unhappy chmod 777 on folders

    I have searched this forum and read every post I can find on this problem but have not found an answer.

    I have just set up my server and am getting internal server errors on directories and on some php files that have permissions of 777. So, I changed the permissions to 755 and MOST of the problems went away. However, I still have one domain that is giving errors even after setting the permissions to 755.

    Before I moved this site to my new server 777 permissions never caused a problem. So, my question is this. Is there a file in the root somewhere that I can modify to allow directories to have permissions set to 777? It seems to me that there should be a way to change the max allowable chmod setting. Any help would be appreciated.

  2. #2
    Member
    Join Date
    Feb 2004
    Posts
    329

    Default

    Check the ownership of the file/folder. If you're using PHP susexc, it should be the actual owner versus nobody.

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    9

    Default Chmod file 777

    I hate to be a pain but how do I do check the owner and if it needs changed how do I do that? I am new at managing my own server. Sorry.

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    329

    Default

    Using SSH: ls -l (lower case L's)

    to changed the owner and group: chown ownername:groupname /directory/filename

    usually ownername and group name are the same.

  5. #5
    Member
    Join Date
    Oct 2004
    Posts
    9

    Talking it's fixed--I think

    I just rebuilt apache without PHP susexc and everything seems to be working now. Thank you for your help.

    Cheers

  6. #6
    Member
    Join Date
    Dec 2003
    Posts
    47

    Default

    Quote Originally Posted by fwwebs
    Using SSH: ls -l (lower case L's)

    to changed the owner and group: chown ownername:groupname /directory/filename

    usually ownername and group name are the same.
    I have this issue with a bunch of images in a directory.

    Can I change the owner and group for all files in a directory?

    Or do I have to do this one by one, or can I do this en masse?

    PLLLLLLLLLLLLLLLLLEEEEEEEEAAAAAAAASSSSSSSSSSSSSSEEEEEEE say I can do it all at once, please please please.

    lol

  7. #7
    Member
    Join Date
    Dec 2003
    Posts
    47

    Default

    Nevermind I figured it out and it was pretty easy thank goodness! LOL!

Similar Threads & Tags
Similar threads

  1. Chmod 777 is disabled - how to enable
    By khorinis in forum New User Questions
    Replies: 1
    Last Post: 09-06-2010, 09:31 AM
  2. block users from chmod 777
    By merlinpa1969 in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 08-05-2007, 07:46 PM
  3. How to locate 777 folders
    By equens in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-17-2006, 04:29 PM
  4. security php fopen chmod 777
    By skyshine in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-13-2005, 10:19 AM
  5. chmod 777
    By HH-Steven in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 01-15-2005, 04:32 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube