title: changing the owner of folder in linux
body: <p>I have a folder in my subdomain which is created through WHM so the owner of that subdomain is not the owner of main domain. </p>
  
  <p>I want to change the owner of one of the folders of subdomain to domain owner. I tried this, but when I check with <code>winscp</code> it shows owner as 500.</p>
  
  <pre><code>  chown users:user /home/xyz/somnething/photo/
  </code></pre>
  
  <p>I've tried to change from winscp also, but there is no option for winscp, so I've logged in as root using putty and ran the command from above, but it doesn't help and I am unable to upload any file to subdomain from the main domain, as it returns error "permission denied".</p>
  
  <pre><code>$ ls -l /home/xyz/somnething/photo/
  total 8 
  drwxr-xr-x 2 sujit sujit 4096 Feb 21 23:39 ./ 
  drwxr-x--- 5 rohan nobody 4096 Feb 22 02:28 ../ 
  </code></pre>
  
  <p>I want to give the ownership of rohan to sujit to have rights to upload file from sujit domain to subdomain rohan</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Now it is changing owner to 500 </p>