linux - How to open up access to a directory for a user using setfacl
问题描述
I need to open up access to a directory for given user (user1) in a redhat machine. I'm using the setfacl
command as follows
sudo setfacl -R -m u:user1:rwx /var/lib/docker/volumes/logs/_data
then I check the access using getfacl
command and this is what I see
user::rwx
user:user1:rwx
group::r-x
mask::rwx
other::r-x
default:user::rwx
default:user:user1:rwx
default:group::r-x
default:mask::rwx
default:other::r-x
解决方案
You do it right.
Whenever an ACL contains any Default ACL entries, the three Default ACL base entries (default owner, default group, and default others) must also exist.
推荐阅读
- java - MediaPlayer 流服务中的 ProtocolException (MediaHTTPConnection: readAt 20709376 / 32768 => java.net.ProtocolException)
- android - 使用 setOnClickListener Kotlin 在 android 中执行应用程序时出错
- c# - C#比较两个强类型列表
- python - 如何使嵌套列表表现得像 numpy 数组?
- python - Python电报机器人 - AttributeError:'sqlite3.Cursor'对象没有属性'data_filter'
- java - Java NIO解码过程中如何去掉不正确的符号?
- android - Nativescript Angular-“typeof View”类型上不存在属性“SYSTEM_UI_FLAG_IMMERSIVE_STICKY”
- sockets - 具有相同本地地址的套接字能否同时处于两种状态“LISTEN”和“ESTABLISHED”
- c# - 使用 C# 访问 JSON 正文
- sql - Oracle SQL - 插入到选择语句中 - 错误