Changing the owner of a symlink

I’ve decided to start a new post series: Ruben relearns obvious *nix things. Today, we try changing the owner of a symlink, fail, then realise we forgot to use the “-h” flag.

Trying to change the owner of a symlink this way doesn’t work:

# chown userX:groupX link

Now we use the -h flag:

# chown -h userX:groupX link

Now when we list:

# [permissions] userX userY [date] link

This works on FreeBSD and GNU. Thank you for your time.


This is one of about 5000 posts on Rubénerd. View the home page for the latest, or related posts also tagged with:

If you liked this post, feel free to buy me a coffee, leave me a comment on Twitter, or email me at Thanks :).