• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Reset vhost permissions on Plesk 10.4

This script doesnt reset all permissions recursively and not all folders are changed.

Before ran script:
[root@painellx domain.com.br]# ls -la
total 80
drwxr-xr-x. 20 root root 4096 Sep 28 11:35 .
drwxr-xr-x. 119 root root 4096 Nov 30 13:41 ..
drwxrwxrwx. 5 domain psaserv 4096 Sep 13 08:23 anon_ftp
drwxrwxrwx. 2 root root 4096 Sep 28 11:35 bin
drwxrwxrwx. 3 domain psaserv 4096 Sep 13 08:23 cgi-bin
drwxrwxrwx. 2 root psaserv 4096 Dec 2 05:51 conf
drwxrwxrwx. 2 root root 4096 Sep 28 11:35 dev
drwxrwxrwx. 2 root psaserv 4096 Sep 13 08:23 error_docs
drwxrwxrwx. 2 root root 4096 Sep 28 11:35 etc
drwxrwxrwx. 23 domain psaserv 4096 Sep 13 14:11 httpdocs
drwxrwxrwx. 2 root root 4096 Sep 28 11:35 lib
drwxrwxrwx. 2 root root 4096 Sep 28 11:35 lib64
drwxrwxrwx. 2 root psaserv 4096 Nov 23 10:34 pd
drwxrwxrwx. 2 domain root 4096 Sep 13 08:23 private
drwxrwxrwx. 7 domain psaserv 4096 Sep 13 08:23 statistics
drwxrwxrwx. 2 root psaserv 4096 Sep 13 08:23 subdomains
drwxrwxrwx. 2 root root 4096 Sep 28 11:35 tmp
drwxrwxrwx. 4 root root 4096 Sep 28 11:35 usr
drwxrwxrwx. 3 root root 4096 Sep 28 11:35 var
drwxrwxrwx. 2 root psaserv 4096 Sep 13 08:23 web_users

After ran the script:

[root@painellx domain.com.br]# ls -la
total 80
drwxr-xr-x. 20 root root 4096 Sep 28 11:35 .
drwxr-xr-x. 119 root root 4096 Nov 30 13:41 ..
drwxr-x---. 5 domain psaserv 4096 Sep 13 08:23 anon_ftp
drwxrwxrwx. 2 root root 4096 Sep 28 11:35 bin
drwxrwxrwx. 3 domain psaserv 4096 Sep 13 08:23 cgi-bin
drwxr-x---. 2 root psaserv 4096 Dec 2 05:51 conf
drwxrwxrwx. 2 root root 4096 Sep 28 11:35 dev
drwxr-xr-x. 2 domain psacln 4096 Sep 13 08:23 error_docs
drwxrwxrwx. 2 root root 4096 Sep 28 11:35 etc
drwxr-xr-x. 25 domain psacln 4096 Dec 4 10:27 httpdocs
drwxrwxrwx. 2 root root 4096 Sep 28 11:35 lib
drwxrwxrwx. 2 root root 4096 Sep 28 11:35 lib64
drwxr-x---. 2 root psaserv 4096 Nov 23 10:34 pd
drwx------. 2 domain root 4096 Sep 13 08:23 private
dr-xr-x---. 7 domain psaserv 4096 Sep 13 08:23 statistics
drwxr-xr-x. 2 root psaserv 4096 Sep 13 08:23 subdomains
drwxrwxrwx. 2 root root 4096 Sep 28 11:35 tmp
drwxrwxrwx. 4 root root 4096 Sep 28 11:35 usr
drwxrwxrwx. 3 root root 4096 Sep 28 11:35 var
drwxr-xr-x. 2 root psaserv 4096 Sep 13 08:23 web_users

Is there no way to full reset a domain under vhosts folder?
 
Back
Top