Help with folder ownership

Previsouly, with cpanel when I create a subdomain, I was creating a ftp account that goes only into subdomains folder. One day i did sum chown command as root on ssh when I as trying to setup teamspeak and screwed up all folders ownership and persmissions. Sumhow my friend fixed and main ftp accounts for each website is working but I when I create a subdomain and ftp account for that spesific folder , it never logins succesfully. Any idea what should I do to fix this?

 

 

 

 

Top