官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 青神县| 凤冈县| 酒泉市| 汤原县| 巴楚县| 翁牛特旗| 吴忠市| 卢龙县| 莫力| 巍山| 台湾省| 洛隆县| 雅安市| 黄石市| 芜湖县| 阿拉尔市| 资阳市| 佳木斯市| 北川| 五华县| 浑源县| 榆中县| 福州市| 和硕县| 永德县| 廊坊市| 上犹县| 五大连池市| 威宁| 普兰店市| 宜城市| 阳江市| 迭部县| 肃南| 综艺| 太原市| 麦盖提县| 五台县| 安新县| 新乐市| 昌平区|