Results 1 to 4 of 4

Thread: Permission Denied in File Manager

  1. #1
    Registered User
    Join Date
    Oct 2012
    Posts
    2
    cPanel/WHM Access Level

    Website Owner

    Default Permission Denied in File Manager

    I am trying to save changes to a file in File Manager in the public_html\shop\css\ directory. I highlight the file and click edit, make my changes and click save and get permission denied. When I right-click on the file and click change permissions, it says user has write access. I don't understand why I am unable to edit this file.

    Thank you

  2. #2
    Registered Member
    Join Date
    Aug 2012
    Posts
    135
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Permission Denied in File Manager

    Perhaps attribute is set to the file. You need to check with the host orelse if you have shell access you can use following command to remove attribute.

    chattr -i filename
    TronicHost.com : Offshore Web Hosting Provider
    Shared Hosting | Reseller Hosting | Dedicated Servers, Netherlands data center

  3. #3
    Registered User
    Join Date
    Oct 2012
    Posts
    2
    cPanel/WHM Access Level

    Website Owner

    Default Re: Permission Denied in File Manager

    Am I going about updating files correctly? From cpanel, I click on "Files" under File Manager and then I choose web root (public_html). Once File Manager window opens, I find the file I want to edit, click on it and click "Edit" at the top, I leave the character encoding option with "utf-8" and then when my file opens, I make my changes and then click "Save Changes". Does it matter if you click "Use Code Editor" or just plain "Edit"?

    I also tried another avenue - From File manager, I downloaded the file I wanted to edit, made the changes, and then uploaded it back. First, I tried using the same name and checked the overwrite box. It said it completed but then when I closed the window and was back to the list of files in that directory, the file was unchanged. I then tried uploading the file with a slightly different name, it said it completed but when I went back to the list of files it was not there. Am I doing something wrong or does it have to do with the attributes?

    I don't have shell access so I will have to ask my host.

    Thanks

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Permission Denied in File Manager

    You are doing everything the right way. The only thing that makes sense is either:

    1) The file is set to immutable (chattr +i) and needs to be changed as previously suggested to make it mutable again (chattr -i)
    2) The file is owned by root or a user other than yourself
    3) The file's permissions are 000 or lower than you have write access to change

    You'll need to ask your host to check the file to see why this is happening.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads

  1. Cpanel - Permission denied when trying to modify a file
    By laviolette99 in forum General Discussion
    Replies: 3
    Last Post: 07-07-2011, 12:21 PM
  2. Permission Denied in File Manager
    By DeiseHost in forum General Discussion
    Replies: 1
    Last Post: 07-11-2008, 07:25 AM
  3. Unable to safely open file: Permission denied and password
    By cdncp in forum E-mail Discussions
    Replies: 1
    Last Post: 03-28-2008, 11:44 AM
  4. Permission denied: creating lock file hitching post
    By awnlionel in forum Database Discussions
    Replies: 6
    Last Post: 05-08-2007, 04:04 AM
  5. Permission denied when changing directories in file manager
    By acetate in forum General Discussion
    Replies: 10
    Last Post: 06-24-2002, 01:32 PM
bargain