XF 1.1 Can't delete folders in the library folder

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
 
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.

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.
 
I like to use this command to set the owner:

Rich (BB 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.
 
Back
Top Bottom