特殊權限SUID

特殊權限SUIDoop

SUID : 運行某程序時,相應進程的屬主是程序文件自身的屬主,而不是啓動者:
chmod u+s File
chmod u-s File
若是 FileB自己原來就有執行權限,則SUID顯示爲s;不然顯示S

SGID : 運行某程序時,相應進程的屬組是程序文件自身的屬組,而不是啓動者所屬的基本組;
chmod g+s File
chmod g-s File
develop team,hadoop,hbase,hive
develop

Sticky : 在一個公共目錄,每一個均可以建立文件,刪除本身的文件,可是不能動別人的文件
chmod o+t DIR
chmod o-t DIR

以上三種全選 也能夠用數字表示法 分別爲SUID ,SGID,Sticky
000
001
011
111
110
101
100
111進程

chmod 1755
umask 0022hadoop

相關文章
相關標籤/搜索