环境: Centos7
背景: 可能平时因为一些误操作,导致了chmod命令失去了执行权限,无法使用chmod改变文件的权限。
方法: 使用setfacl命令进行补救。
setfacl -m u:root:rwx /usr/bin/chmod
chomd +x /usr/bin/chmod
setfacl -b /usr/bin/chmod
来源:CSDN
作者:超大玉螺旋丸
链接:https://blog.csdn.net/qq_38534191/article/details/103584913