统信UOS冒险位(或粘制位)o+t

MoMo 2022年5月20日12:39:35
评论
186

Sticky 冒险位或称粘制位

普通文件的 sticky 位会被 linux 内核忽略。

目录的 sticky 位示这个目录里的文件只能被 owner 和 root 删除

o+t 实验:

useradd -m -s /bin/bash uos1

mkdir /tx

chmod o=rwx /tx/

touch /tx/uos1

su - uos1

rm /tx/uos1

//是可以删除

exit

注销

chmod o+t /tx/

touch /tx/uos2

su - uos1

rm /tx/uos2

rm: 无法删除'/tx/uos1': 不允许的操作 //加上 t 权限之后就不可以删除其他人的文件

 

https://xpanx.com/
MoMo
  • 本文由 发表于 2022年5月20日12:39:35
  • 转载请务必保留本文链接:https://xpanx.com/3647.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: