Linux – chown is not changing symbolic link


I'm trying to change the user/group of a symbolic link with the command:

$ chown -h myuser:mygroup mysymbolic/ 

But it's not changing. I'm logged in as root. The current user/group is set to root:root. What went wrong?

Best Answer

I was putting a slash in the end of target:

chown -h myuser:mygroup mysymbolic/ 

just removed the slash in the end and works. Here's the correct way:

 chown -h myuser:mygroup mysymbolic
Related Question