2013年5月14日 星期二

Linux SUID, SGID, Sticky bit

當SUID (set user id):chmod u+s file
  • 被設定在檔案上時,檔案的執行者會以檔案的擁有者的身分來執行
當SGID (set group id):chmod g+s file 或是 chmod g+s directory
  • 被設定在檔案上時,檔案的執行者會以檔案的擁有群組的身分來執行
  • 當設定在目錄上時,在此目錄下新建的檔案群組會被自動套用此目錄的群組 
Sticky bit:chmod +t directory
  • 當設定在目錄上時,以下的檔案只有該擁有者才能刪除或更名( /tmp )
http://en.wikipedia.org/wiki/Setuid
http://en.wikipedia.org/wiki/Sticky_bit

1 則留言:

  1. Sports Betting at Safest Betting Sites in Israel - Airjordan10 RetroOutlet
    Safest Betting how to get air jordan 18 retro red suede Sites in Israel · The Best and Best Betting Sites in the UK · The air jordan 18 retro to my site UK's Hottest Bookmakers · 넷마블 사이트 Betfair Sports air jordan 18 retro varsity red discount Betting Authority · air jordan 18 retro to us Betfair

    回覆刪除