When you have permission settings which are not correct, such as in the /home/username/ directory, like the
lrwxrwxrwx 1 root root 11 Jan 6 2009 www -> public_html/
link and for some reason ownership has been modified to root.root for the softlink, you can use the
chown -h myuser:mygroup mysymbolic/
command to change the ownership of the link.
Unfortunatly this did not work. The issue was I was putting a slash in the end of target:
chown -h myuser:mygroup mysymbolic/ < <<<<<<
just removed the slash in the end and it works fine.
chown -h myuser:mygroup mysymbolic