FreeBSD修改root密码错误passwd: pam_chau(www.111cn.net)thtok(): error in service module from:http://www.111

在FreeBSD中修改账号密码有时候会出现一些错误,针对passwd: pam_chauthtok(): error in service module这样的错误提示,简单整理了如下解决方案:
错误提示:.net

代码以下 复制代码
kiccleaf# passwd kiccleaf
Changing local password for kiccleaf
New Password:
Retype New Password:htm

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

修改方法:(www.111cn.net)
1.把/etc/passwd 文件给全部权限
2.修改好密码
3.恢复文件相应权限it

代码以下 复制代码
kiccleaf# ll /etc/passwd
-rw-r--r-- 1 root wheel 1509 Apr 23 14:35 /etc/passwdmodule

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

kiccleaf# chmod 644 /etc/passwd

from:http://www.111cn.net/sys/freebsd/66713.htmservice

相关文章
相关标签/搜索