![如何授予读写权限但不删除文件](https://linux22.com/image/689508/%E5%A6%82%E4%BD%95%E6%8E%88%E4%BA%88%E8%AF%BB%E5%86%99%E6%9D%83%E9%99%90%E4%BD%86%E4%B8%8D%E5%88%A0%E9%99%A4%E6%96%87%E4%BB%B6.png)
我想让用户能够在其他用户目录中创建、写入和读取文件,但没有在创建后删除文件的选项(粘性位在这里不起作用......)例如:
i have user : manager with directory repository
i have user : worker1 that need to write files to /manager/repository can't delete the files
i have user : worker2 that need to write files to /manager/repository can't delete the files
i have user : worker3 that need to write files to /manager/repository can't delete the files
但工人 1-2-3 创建后不能删除文件,只有经理和 root 可以删除工人 1 2 3 创建的文件。
我尝试了一些使用 stick bit 1 的 chown 和 chmod 技巧,但没有成功。