对某个用户 开 某个文件夹 写权限
背景:将B文件夹对同事A开放 写 权限
Give specific user permission to write to a folder using +w notation
You could use setfacl:
setfacl -m u:username:rwx myfolder
This sets permissions for specific users, without changing the ownership of the directory.
递归,对子目录也进行权限设置
If you want to apply it recursively to all the subdirectories: add the -R flag like this:
setfacl -R -m u:username:rwx myfolder
对多个用户进行权限设置
setfacl -m u:user1:rwx,u:user2:rwx,u:user3:rwx directory_name
参考链接:https://askubuntu.com/questions/487527/give-specific-user-permission-to-write-to-a-folder-using-w-notation
https://www.linuxhelp.com/questions/single-command-to-apply-setfacl-for-multiple-user-at-a-time