我在 bash 文件中有以下代码:
sudo setfacl -m g:jobq:x /usr/local/sbin/jobq_submit
sudo setfacl -m g:jobq:x /usr/local/sbin/jobq_server
sudo setfacl -m g:jobq:x /usr/local/sbin/jobq_server_stop
sudo setfacl -m g:jobq:x /usr/local/sbin/jobq_server_start
sudo setfacl -m g:jobq:x /usr/local/sbin/jobq_status
sudo setfacl -m g:jobq:x /usr/local/sbin/jobq_stop
sudo setfacl -x g:jobq:rw /usr/local/sbin/jobq_submit
sudo setfacl -x g:jobq:rw /usr/local/sbin/jobq_server
sudo setfacl -x g:jobq:rw /usr/local/sbin/jobq_server_stop
sudo setfacl -x g:jobq:rw /usr/local/sbin/jobq_server_start
sudo setfacl -x g:jobq:rw /usr/local/sbin/jobq_status
sudo setfacl -x g:jobq:rw /usr/local/sbin/jobq_stop
sudo setfacl -x g:jobq:rw /usr/local/sbin/jobq_submit
带有的-m
行不给出错误消息,但带有-x
say的行
setfacl:选项 -x:字符 8 附近的参数无效
这里有什么问题?
setfacl -x
仅引用要删除的 ACL,而不是与 ACL 关联的权限: