• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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