Change ownership of symlink – Linux

Problem – Question
I had to change the user and group of a symbolic link.
The usual chown -R username:group target_to_change/ did not work.

Answer
When auto-completing the target_to_change like I always do, you will notice the tab complete puts a slash on the end like this “target_to_change/”. You have to remove the trailing slash or the aforementioned command will not work. I guess it does not recognise the name of the symlink unless the name is given verbatim.

Tim

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s