14387 shaares
5333 private links
5333 private links
On a Linux system, when changing the ownership of a symbolic link using chown, by default it changes the target of the symbolic link (ie, whatever the symbolic link is pointing to).
If you'd like to change ownership of the link itself, you need to use the -h option to chown:
-h, --no-dereference affect each symbolic link instead of any referenced file (useful only on systems that can change the ownership of a symlink)