我使用ansible修改其他配置文件时都可以修改,在修改/etc/shadow文件时会报错:setfacl:/etc/shadow:Operation not permittednon-zero return codesetfacl:/etc/shadow:Operation not permitted请问怎样才能使用...
if[-d/etc/profile.d];then for i in/etc/profile.d/*.sh;do if[-r$i];then i fi for循环语句都不完整结尾应该加一个done,外层的if语句也不完整,少一个#if[-d/etc/profile.d];then for i in/etc/profile.d/*.sh;do...
cat:/etc/redhat-release:No such file or directory cp:cannot stat '/etc/rc.local':No such file or directory cp:cannot stat '/etc/rc.d/rc.local':No such file or directory it is not centos7 cat:/etc/rc....