chmod 4755 中的4是啥意思

很多中文的文章都不愿意说清楚。或者只说后面三位。然后稍微提一下第一位。

http://en.wikipedia.org/wiki/Setuid

还是上述文章写得清晰:

The setuid and setgid bits are normally set with the command chmod by setting the high-order octet to 4 (for setuid) or 2 (for setgid). `chmod 6711` will set the setuid and setgid bit (6) make the file read/write/executable for the owner (7) and executable by the group (first 1) and others (second 1). All chmod flags are octal, and the least significant bit of the high-order octal digit is used for a special mode known as the sticky bit.

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值