linux setfacl权限给不同的用户,并且能够recursion写入
我在同一组中拖拽用户1.用户1:datauser 2.用户2:webuser 3.组:apache 什么设置权限使用setfact的任何一个用户可以创build目录/文件recursion。 例如:directory / web / foo /什么权限/掩码设置(使用setfact),以便datauser / webuser可以在foo目录(recursion)下创build目录。 #datauser : mkdir -p /web/foo/datadir/ #webuser : mkdir -p /web/foo/datadir/webdir #datauser : touch /web/foo/datadir/webdir/datafile.txt #webuser : touch /web/foo/datadir/webfile.txt etc… I try with below command, but when any directory created using webuser:apache, then datauser:apache not able to write under that. setfacl -Rm u:webuser:rwX,d:u:webuser:rwX foo […]