创建Student组的所属目录stu_dir1,要求只有同组里的成员可以在该目录下查看创建文件。创建用户stu3 属于Student组、stu4不属于Student组,分别测试是否可以进入目录stu_dir1创建文件。
chmod o-rw stu_dir1 ,改变目录属性,other只有进入目录权限,同时可以chmod +t stu_dir1,添加粘滞位让other不能删除目录内容
https://blog.csdn.net/chj_1224365967/article/details/124040117 参考我的文章进行设置