Chown Softlinks

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

g33kadmin

I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.