groupadd xxx时报错:
groupadd : cannot open /etc/group
解决方法:
root:chattr -i /etc/gshadow
root:chattr -i /etc/group
useradd xxx时报错:
useradd :cannot open /etc/passwd
解决方法:
root:chattr -i /etc/shadow
root: chatrr -i /etc/passwd
本文介绍了解决在使用groupadd和useradd命令时遇到的无法打开配置文件的问题。针对groupadd命令无法打开/etc/group文件的情况,可以通过运行特定的chattr命令来解除文件的不可更改属性;同样地,对于useradd命令无法打开/etc/passwd文件的问题,也提供了类似的解决方案。
groupadd xxx时报错:
您可能感兴趣的与本文相关的镜像
Stable-Diffusion-3.5
Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率
530
4779