title: Script to change ownership of folders in Plesk vhosts
body: <p>I'm looking for some help in creating a shell script in Linux to perform a batch ownership change for certain folders in a Plesk environment where the owner:group is apache:apache.</p>
  
  <p>I want to change the owner:group to :psacln.</p>
  
  <p>The FTP user can be ascertained by looking at the owner of the httpdocs folder.
  ^this is the section I'm having trouble with.</p>
  
  <p>If I was to set all owners to be the same, I could do a one-line:</p>
  
  <pre><code>find /var/www/vhosts/*/httpdocs -user apache -group apache -exec chown user:psacln {} \;
  </code></pre>
  
  <p>Can anyone help plug the user in to this command?</p>
  
  <p>Thanks</p>