Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 2
    I just ran into a permission problem with symlinks on a CentOS 6.8 server. The symlinks had owner:group of root:root. When the owner and group were changed to the user that owned the directory they were in, as shown in this answer, the permission problem went away. Commented Dec 4, 2016 at 6:12
  • 4
    Just providing a clarification. To change ownership or rights on a symlink, the -h flag will affect the symlink file instead of the dereferenced file. Commented Jul 15, 2019 at 14:11
  • 8
    I get told that -h doesn't exist on chmod as an option! Commented Oct 17, 2021 at 11:13
  • 3
    -h doesnt seem to exist in debian Commented Mar 10, 2022 at 11:02
  • See also the very surprising effects of symbolic links with restrictive permissions on BSD/macOS systems described here -- you may not be able to resolve the link target, but you can still read and write to it! Commented Jun 9, 2022 at 14:05