远程协助
当前位置:首页>>文档中心>>服务器
标题:FreeBSD修改root密码错误passwd: pam_chauthtok(): error in service m    日期:2019-04-15 13:00:14

cle/one/2018/0610/295.html">FreeBSD中修改帐号密码有时候会出现一些错误,重庆监控安防,针对passwd: pam_chauthtok(): error in service module这样的错误提示,简单整理了以下解决方案:
错误提示:

 代码如下

kiccleaf# passwd kiccleaf
Changing local password for kiccleaf
New Password:
Retype New Password:

/: write failed, filesystem is full
passwd: pam_chauthtok(): error in service module

修改方法:
1.把/etc/passwd 文件给所有权限
2.修改好密码
3.恢复文件相应权限

 代码如下

kiccleaf# ll /etc/passwd
-rw-r--r--  1 root  wheel  1509 Apr 23 14:35 /etc/passwd

kiccleaf# chmod 777 /etc/passwd
kiccleaf# passwd kiccleaf
Changing local password for kiccleaf
New Password:
Retype New Password:

kiccleaf# chmod 644 /etc/passwd

下一篇:freebsd9.2中配置postfix smtp认证功能

联系我们
  • 客服热线:023-63522929(7 x 24h)
  • 在线客服:
  • 微信公众号 官方微博