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.
I want to change the owner of one of the folders of subdomain to domain owner. I tried this, but when I check with winscp it shows owner as 500.
chown users:user /home/xyz/somnething/photo/
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".
$ ls -l /home/xyz/somnething/photo/
drwxr-xr-x 2 sujit sujit 4096 Feb 21 23:39 ./
drwxr-x--- 5 rohan nobody 4096 Feb 22 02:28 ../
I want to give the ownership of rohan to sujit to have rights to upload file from sujit domain to subdomain rohan
Now it is changing owner to 500