chown a symlink

Not sure why I always forget this, but to chown or chmod a symbolic link rather than its target use the -h (no-dereference) flag:

chown -h new_user symbolic_link_name

You can leave a response, or trackback from your own site.

Leave a Reply