Centos 7 Made Me Choose Settings Again
In Linux, the passwd command is used to fix or change user account passwords, while using this control sometimes users may encountered the error: "passwd: Authentication token manipulation mistake" as shown in below instance.
Recently I was logging in to my CentOS server using my username "tecmint". Once I am logged in I am trying to change my password using passwd utility, simply a 2nd afterward I am getting the following mistake messages.
# su - tecmint $ passwd tecmint Changing password for user tecmint Changing password for tecmint (current) UNIX password: passwd: Hallmark token manipulation error
In this commodity, we will explain different means of fixing "passwd: Authentication token manipulation error" in Linux systems.
one. Reboot System
The first basic solution is to reboot your system. I can't really tell why this worked, but it did worked for me on my CentOS vii.
$ sudo reboot
If this fails, try out the next solutions.
2. Set Correct PAM Module Settings
Another possible crusade of the "passwd: Authentication token manipulation error" is wrong PAM (Pluggable Authentication Module) settings. This makes the module unable to obtain the new authentication token entered.
The various settings for PAM are plant in /etc/pam.d/.
$ ls -l /etc/pam.d/ -rw-r--r-- ane root root 142 Mar 23 2017 abrt-cli-root -rw-r--r-- 1 root root 272 Mar 22 2017 atd -rw-r--r-- one root root 192 January 26 07:41 chfn -rw-r--r-- ane root root 192 January 26 07:41 chsh -rw-r--r-- 1 root root 232 Mar 22 2017 config-util -rw-r--r-- 1 root root 293 Aug 23 2016 crond -rw-r--r-- ane root root 115 Nov 11 2010 eject lrwxrwxrwx 1 root root xix Apr 12 2012 fingerprint-auth -> fingerprint-auth-air-conditioning -rw-r--r-- 1 root root 659 Apr 10 2012 fingerprint-auth-air conditioning -rw-r--r-- 1 root root 147 Oct 5 2009 halt -rw-r--r-- 1 root root 728 Jan 26 07:41 login -rw-r--r-- 1 root root 172 Nov eighteen 2016 newrole -rw-r--r-- 1 root root 154 Mar 22 2017 other -rw-r--r-- i root root 146 Nov 23 2015 passwd lrwxrwxrwx 1 root root xvi Apr 12 2012 countersign-auth -> password-auth-ac -rw-r--r-- i root root 896 Apr ten 2012 password-auth-air conditioning ....
For instance a mis-configured /etc/pam.d/common-password file can event into this error, running the pam-auth-update command with root privileges can prepare the upshot.
$ sudo pam-auth-update
iii. Remount Root Segmentation
You might also see this error if the /
sectionalization is mounted as read merely, which ways no file can be modified thus a user's password can't exist set or changed. To fix this mistake, you need to mount the root partition as equally read/write as shown.
$ sudo mountain -o remount,rw /
4. Set Correct Permissions on Shadow File
Incorrect permissions on the /etc/shadow file, which stores bodily passwords for user accounts in encrypted format tin also cause this mistake. To check the permissions on this file, use the following command.
$ ls -l /etc/shadow
To prepare the correct permissions on it, use the chmod control as follows.
$ sudo chmod 0640 /etc/shadow
5. Repair and Set up Filesystem Errors
Minor storage drive or filesystem errors can also crusade the error in question. Y'all can use Linux disk scanning tools such every bit fsck to fix such errors.
six. Gratis Up Disk Space
Furthermore, if your disk is full, then you tin not modify any file on the disk especially when file'southward size is meant to increase. This tin can besides cause the higher up fault. In this case, read our following articles to clean upwards disk space can help solve this fault.
- Agedu – A Useful Tool for Tracking Down Wasted Disk Space in Linux
- BleachBit – A Free Disk Space Cleaner and Privacy Guard for Linux Systems
- How to Find and Remove Duplicate/Unwanted Files in Linux Using 'FSlint' Tool
Y'all will also observe these articles relating to managing user passwords in Linux.
- How to Reset Forgotten Root Password in RHEL/CentOS and Fedora
- How to Force User to Change Countersign at Next Login in Linux
- How to Run 'sudo' Control Without Entering a Password in Linux
That's it for now! If y'all know whatever other solution to fix "passwd: Authentication token manipulation fault", let us know via the feedback form below. We will exist grateful for your contribution.
If Y'all Appreciate What We Do Here On TecMint, You lot Should Consider:
TecMint is the fastest growing and near trusted community site for whatsoever kind of Linux Manufactures, Guides and Books on the web. Millions of people visit TecMint! to search or scan the thousands of published articles bachelor FREELY to all.
If you like what you are reading, please consider ownership us a coffee ( or two ) as a token of appreciation.
We are thankful for your never ending support.
Source: https://www.tecmint.com/fix-passwd-authentication-token-manipulation-error-in-linux/
0 Response to "Centos 7 Made Me Choose Settings Again"
Post a Comment