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

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.

主站蜘蛛池模板: 嫩江县| 通许县| 金坛市| 岳西县| 景德镇市| 湖南省| 察雅县| 榆中县| 黑水县| 汉阴县| 定安县| 年辖:市辖区| 延边| 扶风县| 濮阳市| 平邑县| 宁城县| 尉犁县| 云浮市| 崇仁县| 临漳县| 拉萨市| 南充市| 桂阳县| 瓦房店市| 金堂县| 舒兰市| 嘉祥县| 英吉沙县| 鹤壁市| 兰州市| 新宾| 闵行区| 博罗县| 八宿县| 翁源县| 行唐县| 瑞昌市| 阿勒泰市| 房山区| 商都县|