groupadd : cannot open /etc/group useradd :cannot open /etc/passwd
程序员文章站
2022-04-04 19:43:31
...
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