- Learning Linux Shell Scripting
- Ganesh Naik
- 103字
- 2021-06-25 22:02:46
Sticky bit
The sticky bit is a very interesting functionality. Let's say, in the administration department, there are 10 users. If one folder has been set with sticky bit, then all other users can copy files to that folder. All users can read the files, but only the owner of the respective file can edit or delete the file. Other users can only read, but not edit or modify, the files if the sticky bit is set:
$ chmod +t filename
Alternatively, you can use the following command:
$ chmod 1777
File permissions after any of the preceding two commands will be drwxrwxrwt.
推薦閱讀
- OpenStack for Architects
- 西門子S7-200 SMART PLC從入門到精通
- Java開發技術全程指南
- Expert AWS Development
- VMware Performance and Capacity Management(Second Edition)
- 樂高創意機器人教程(中級 下冊 10~16歲) (青少年iCAN+創新創意實踐指導叢書)
- 基于ARM 32位高速嵌入式微控制器
- Implementing Oracle API Platform Cloud Service
- 21天學通C語言
- 大數據驅動的機械裝備智能運維理論及應用
- TensorFlow Reinforcement Learning Quick Start Guide
- 過程控制系統
- 傳感器與自動檢測
- 傳感技術基礎與技能實訓
- Getting Started with Tableau 2019.2