Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jun 2004
    Location
    Cape Town, South Africa
    Posts
    35

    Default File Permission Problems - for once and for all! - Urgent

    Hi,

    I have posted on this forum about this before but never got any replies that solved the problem. I have therefore decided to open a new thread to hopefully sort this problem out for once and for all.

    If I suspend a perfectly working account, then unsuspend it and visit the site, I get a 403 Forbidden error. I try playing around with permissions but this does not solve the problem.

    I'm too scard to do a '/scripts/chownpublichtmls' as the last time I did this, it set ALL my public_html's to 403 Forbidden which caused an entire nightmare!

    I also have clients accounts who are showing 403 Forbidden and I am not sure what the correct permissions should be in order to get their accounts back up and running.

    PLEASE assist in replying with what exactly should be set.

    ie. chmod XXX /home/user/public_html/*
    or chown xx.xxx /home/user/public_html/
    or chmod x+x /home/user/*

    Please include however it should be done, and whatever should be done to the folders/files.

    I'm sure if we get some valued replies here then this post would do well for people doing searches on the same problem as I've heard/seen this type of thing on other servers too.

    Awaiting anybody's urgent assistance.

  2. #2
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    chmod 755 /home/user/public_html

    That will get you up and running quickly. However, the cause of your problem is with the user directory protect feature. Rebuild apache and select "Prevent Users from reading other webroots". This is a good thing, because it gives you a little added security. cpanel already apparently thinks that you've selected this, so it is chmoding the directories as 711. The ownership on the folder must be user:nobody, however, in order for this to work.

    chown user:nobody /home/user/public_html

    Checking the option above will do this for you automatically and remove any problems you might run into in the future.

  3. #3
    Member
    Join Date
    Jun 2004
    Location
    Cape Town, South Africa
    Posts
    35

    Default

    Thank you so much for your reply, that simple little bit of information has enabled the clients folder again!

    Any explanation to why chownpublichtmls messes everything up and the same for suspend/unsuspend not working? Or is that what the rest of your reply is about?

  4. #4
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    That's what the rest of the reply is about.

    If you'll rebuild apache with the said option I believe that your troubles will be over.

  5. #5
    Member
    Join Date
    Jun 2004
    Location
    Cape Town, South Africa
    Posts
    35

    Default

    Once again, thank you so much. I will give it a try when I have the guts to recompile apache (things always go wrong) and will update the thread.

Similar Threads & Tags
Similar threads

  1. PHP Upload file permission problems
    By bridgeway04 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-04-2010, 03:05 PM
  2. Replies: 6
    Last Post: 07-13-2009, 12:27 PM
  3. Folder Permission 755 and File Permission 644 safe ?
    By smksa in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-13-2009, 12:27 PM
  4. Urgent: Folders and Files Permission(chmod) Problem!
    By WebHour.net in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-04-2006, 07:05 AM
  5. File upload - permission problems
    By nsusa in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-16-2005, 06:42 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube