linux
#设置权限
echo 'passwrod'|sudo -S setfacl -Rm u:username:rwx file_or_dir
#获取权限
getfacl file_or_dir
mac
$ chmod +a 'john allow read,write,delete,add_file,add_subdirectory,file_inherit,directory_inherit' /data
#设置权限
echo 'passwrod'|sudo -S setfacl -Rm u:username:rwx file_or_dir
#获取权限
getfacl file_or_dir
$ chmod +a 'john allow read,write,delete,add_file,add_subdirectory,file_inherit,directory_inherit' /data