- Plesk 12.5 for Linux
- Plesk 11.x for Linux
- Plesk 12.0 for Linux
When trying to create a new FTP user or list the domain directories using in Plesk->subscription->File manager , the following error appear:
Error: Unable to change directory to //httpdocs: filemng: opendir failed: Permission denied
System error 13: Permission denied
Ownerships and permissions for files and directories of required domain is broken.
Run the commands below with superuser privileges to download the archived shell script. Unzip it and execute, providing the needed domain name as an argument:
~# wget https://support.plesk.com/hc/article_attachments/115004544609/recover_plesk_directories.zip
~# unzip recover_plesk_directories.zip
~# sh recover_plesk_directories.sh domain.tld
Script uses internal 'dirmng' utility and a set of predefined rules to reset permissions and ownerships on core elements of virtual host directory to their default values.