小编Ray*_*tre的帖子

OSX `chmod -h` 标志的 Ubuntu 等价物是什么?

在 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重要。我怎样才能做到这一点?

ssh permissions chmod symbolic-link

13
推荐指数
2
解决办法
1615
查看次数

标签 统计

chmod ×1

permissions ×1

ssh ×1

symbolic-link ×1