在 OSX 中,我可以设置符号链接本身的权限(而不是使用 -h 指向的内容)。从手册页:
-h If the file is a symbolic link, change the mode of the link itself rather than the file that the link points to.
Run Code Online (Sandbox Code Playgroud)
在 Ubuntu 14.04 中,我尝试设置符号链接的权限,但它仅在符号链接目标上设置。
它是关于从一个符号链接/home/nagios/.ssh/someprivatekey到/somewhere/else/privatekey,这样的权限是SSH重要。我怎样才能做到这一点?