Linux - Chown for symbolic link, Change ownership for symbolic link

Chown for symbolic link


The chown command changes the user ID and/or the group ID of the specified files. Symbolic links named by arguments are silently left unchanged unless -h is used.

Changing the owner of a symbolic link needs special attention. When you use chown the regular way to change the owner of a symbolic link, then you are actually changing the target the symbolic link points to.

To change the owner of a symbolic link only you can use chown with the -h switch:
 # chown -h user:group symboliclink

To change the owner of the target the symbolic link points to:
 # chown user:group symboliclink


The topic on Linux - Chown for symbolic link is posted by - Math

Hope you have enjoyed, Linux - Chown for symbolic linkThanks for your time

Tech Bluff