linux用户改密码提示错误passwd: User not known to the underlying authentication module

#passwd  XXXXX      //XXXXX为账号安全

New UNIX password:
Retype new UNIX password:
passwd: User not known to the underlying authentication module
 ide

这个时候多是/etc/passwd和/etc/shadow 内容不一致的问题,使用pwconv同步下。同步

pwconv

 功能说明:开启用户的投影密码。it

  语 法:pwconv   补充说明:Linux系统里的用户和群组密码,分别存放在名称为passwd和group的文件中, 这两个文件位于/etc目录下。因系统运做所需,任何人都得以读取它们,形成安全上的破绽。投影密码将文件内的密码改存在/etc目录下的shadow和gshadow文件内,只容许系统管理者读取,同时把原密码置换为"x"字符,有效的强化了系统的安全性。
相关文章
相关标签/搜索