Linux的cap功能,无法设置CAP_SETFCAP有效功能

你好,

我是从PocketBeagle这个话题发来的 -  Linux上的Linux  -  eewiki。

基本上我按照说明启动了基于iMX的评估板。

我用

rootfs的https://rcn-ee.com/rootfs/eewiki ... f-2017-12-09.tar.xz。

电路板启动正常,我登录确定(ubuntu / tempwd,从串口登录),无法ping 8.8.8.8。

我可以从网络中的其他计算机ping板,但由于权限问题,板本身无法ping通。

我知道我是root,因为我可以做dd命令等...我可以调用“ping --help”但不能执行“ping 8.8.8.8”。

我按照某人注意“setcap cap_net_raw + p / bin / ping”但遇到消息“无法设置CAP_SETFCAP有效功能:操作不允许”。

我找不到任何其他提示来解决这个问题。

你能帮忙吗?

顺便说一句,当我做“sudo ping 8.8.8.8”时,我遇到了消息“sudo / usr / bin / sudo必须由uid 0拥有并且设置了setuid位”

以上来自于谷歌翻译以下为原文

hello,

I was sent from this topic PocketBeagle - Linux on ARM - eewiki. Basically I followed the instructions to boot up an iMX based evaluation board. I use

https://rcn-ee.com/rootfs/eewiki ... f-2017-12-09.tar.xz for rootfs. The board booted up fine and I logged in ok (ubuntu/tempwd, logged in from the serial port), faiLED to ping 8.8.8.8.

I can ping the board from other computer in the network but the board itself cannot ping because of permission issue. I know I am root, as I can do dd command, etc… I can call “ping --help” but cannot do “ping 8.8.8.8”.

I followed someone note “setcap cap_net_raw+p /bin/ping” but met with message “unable to set CAP_SETFCAP effective capability: Operation not permitted”.

I cannot find any other hints to solve this problem. Can you please help ?

By the way, when I do “sudo ping 8.8.8.8”, I was met with message “sudo /usr/bin/sudo must be owned by uid 0 and have the setuid bit set”

699ba7046c51816a17b33a7caa85f179.png

0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值