#chown
4 one-liners with this tag.
All one-liners tagged chown
Copy permissions and owner from a reference file
#chmod --reference=/var/www/vhosts/example.com/httpdocs/index.php /var/www/vhosts/example.com/httpdocs/wp-config.php && chown --reference=/var/www/vhosts/example.com/httpdocs/index.php /var/www/vhosts/example.com/httpdocs/wp-config.php
Find files with the wrong owner in a webspace
#find /var/www/vhosts/example.com/httpdocs ! -user webuser -ls
Find files without a valid owner
#find /var/www -xdev \( -nouser -o -nogroup \) -ls 2>/dev/null
Reset file ownership in a Plesk webspace to the subscription user
#find /var/www/vhosts/example.com/httpdocs -mindepth 1 -exec chown -h webuser:psacln {} +