我使用此cmd添加新用户和新组。无法为新添加的linux用户设置密码
# groupadd lfs
# useradd -s /bin/bash -g lfs -m -k /dev/null lfs
# su lfs
$ passwd
Changing password for lfs.
(current) UNIX password:
然后无论输入什么密码(我的root passwd或全新的密码),它们都失败了。
$ passwd
Changing password for lfs.
(current) UNIX password:
passwd: Authentication token manipulation error
passwd: password unchanged
我的设置有什么问题?我怎样才能成功设置passwd?谢谢 !
这是超级用户吗? – CoffeeRain 2012-03-05 14:39:14
是的,我犯了一个错误,最初的passwd必须设置为root。 – 2012-03-05 14:57:13