1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Can't delete folders in the library folder

Discussion in 'Troubleshooting and Problems' started by faeronsayn, Mar 24, 2013.

  1. faeronsayn

    faeronsayn Well-Known Member

    For some reason I can't delete anything in the library folder. Everytime I delete something, it just re-appears. I even tried to overwrite it and it gave me permission errors. So I changed the permissions of the folder and it's sub folders to 777 and that didn't work either. Any help would be appreciated.

    Errors in cPanel when I try to overwrite...

    Code:
    error:  cannot delete old library/XenSSO/.DS_Store
            Permission denied
    error:  cannot delete old library/XenSSO/Shared/Helpers.php
            Permission denied
    error:  cannot delete old library/XenSSO/Shared/Model/Auth.php
            Permission denied
    error:  cannot delete old library/XenSSO/Shared/Secure.php
            Permission denied
    error:  cannot delete old library/XenSSO/Shared/User.php
            Permission denied
    checkdir error:  cannot create library/XenSSO/Slave
                    Permission denied
                    unable to process library/XenSSO/Slave/.
    checkdir error:  cannot create library/XenSSO/Slave
                    Permission denied
                    unable to process library/XenSSO/Slave/.DS_Store.
    checkdir error:  cannot create library/XenSSO/Slave
                    Permission denied
                    unable to process library/XenSSO/Slave/.xfcli-config.
    checkdir error:  cannot create library/XenSSO/Slave
                    Permission denied
                    unable to process library/XenSSO/Slave/Controller/.
    checkdir error:  cannot create library/XenSSO/Slave
                    Permission denied
                    unable to process library/XenSSO/Slave/Controller/Consumer.php.
    checkdir error:  cannot create library/XenSSO/Slave
                    Permission denied
                    unable to process library/XenSSO/Slave/Controller/Extend/.
    checkdir error:  cannot create library/XenSSO/Slave
                    Permission denied
                    unable to process library/XenSSO/Slave/Controller/Extend/AccountConfirmation.php.
    checkdir error:  cannot create library/XenSSO/Slave
    
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Permission error. It would be either the permission bits or the owner. If it's the wrong owner then root access may be required to change it.
     
  3. faeronsayn

    faeronsayn Well-Known Member

    Definitely an owner problem. Do you know of anyway to change the owner in shell? I am running cPanel, so possibly the cPanel's account name being the owner would be sufficient.
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I like to use this command to set the owner:

    Code:
    chown --recursive --reference=/path/to/correct/owner/ /path/to/target/dir/
    
    It lets you copy the owner bits from one directory to another. And it does it recursively through all subdirectories.
     
    faeronsayn likes this.
  5. faeronsayn

    faeronsayn Well-Known Member

    Worked like a charm. Thanks :)
     

Share This Page