我想解决this issue中描述的同样问题。
因此我想执行以下命令:
$ sudo setcap cap_net_bind_service=+ep /home/username/.linuxbrew/bin/node
这产生了错误:
Failed to set capabilities on file `/home/username/.linuxbrew/bin/node' (Invalid argument)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
是否会发生这种情况,因为foldername是 .linuxbrew ,如果是,我该如何解决?
答案 0 :(得分:1)
这是因为你试图在符号链接上运行它。请尝试运行此代码:
sudo setcap cap_net_bind_service=+ep $(readlink -f ~username/.linuxbrew/node)