考虑我们有两个小组:读者和作家。 我想创build一个文件(目录),以下内容:
如果作者只有一个成员,可以用640面具(所有者作家,小组读者)轻松完成。 但是,这怎么能为团队呢?
文件系统必须支持acl
acl选项的文件系统(例如,运行mount ) setfacl -mg:writers_group:rw /somepath/somefile setfacl -mg:readers_group:r /somepath/somefile chmod和setfacl -x不必要的访问,请将其删除 getfacl /somepath/somefile 更多信息例如这里 。