FreeBSD Modify root password error Passwd:pam_chauthtok (): Error in service module

Source: Internet
Author: User
Tags chmod


Modifying the account password in FreeBSD can sometimes cause errors, and the following solutions are simply sorted out for Passwd:pam_chauthtok (): Error in service module:
Error Tip:


The code is as follows

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


To modify the method:
1. Give all permissions to the/etc/passwd file
2. Modify the good password
3. Restore the appropriate permissions of the file


  code is as follows

kiccleaf# LL/ETC/PASSWD
-rw-r--r--  1 root  wheel  1509 Apr 14:35/etc/passwd

kiccleaf# chmod 777/et C/PASSWD
kiccleaf# passwd kiccleaf
Changing local password for kiccleaf
New password:
Retype new password:

kiccleaf# chmod 644/etc/passwd

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.