title: cpanel change ownership of files
body: <p>I'm in a totally new situation.
  I have the access on root on a reseller account.
  One of the clients for that reseller has a file, he can't modify. Is a file installed with a plugin in wordpress.
  That much I understood. He is not the owner of the file. I have to change the owner of that file.
  I have shell acces and cron acces but I was not able to use it to solve the problem. 
  The solution I come out till now, that doesn't work is adding a new cron job(copy and paste from a forum)</p>
  
  <pre><code> #!/bin/bash cd /var/cpanel/users for user in * do chown -R $user.$user /home/$user/public_html/* done
  </code></pre>
  
  <p>Doesn't work! First of all there is only one line in the cron filed for code so the code above it goes in one line and it looks like is commented. Second, I have no ideea if the cron works. I put my email address to be notified when a cron job is being executed, and I don't get any email.</p>
  
  <p>The only thing I care is to change the ownership of a file.</p>