课程: Linux: Storage Systems (2016)

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Manage file system access control lists

Manage file system access control lists - Linux教程

课程: Linux: Storage Systems (2016)

Manage file system access control lists

- [Instructor] Access control lists are another mechanism for permission on files and directories. It's finer control than the usual owner group other rwx stuff, because you can give access to, for example, individual users. That's different than other. So the file system needs to support this. And when you mount the file system, you can have the option to have it enforce the ACLs. This is pretty common, and even NFS supports ACLs. So when you have an ACL set for a user on a file, that's what they get, not the other sort of permission. So there are access ACLs for a specific file or directory that says, for example, this user is given this permission. An ACL on a directory that's default, means that things in that directory will inherit that ACL automatically. And so you can set per user, per group or you can set a mask, which will limit the ACLs that can be sent. To find out what the ACLs are on something, use getfacl. Getfacl. So here we did it on some file newdate.txt. And it has…

内容