Authentication token manipulation error ubuntu root

authentication token manipulation error ubuntu root

This error happened mostly on /etc/pam.d/system-auth & password-auth If you had change some configurations on that configuration file please make sure what you. Your system is definitely broken, most likely beyond repair. It would be best to backup all data and reinstall it. Note that Kali Linux is. 4). Select root Drop to root shell prompt to enter single user mode.. Then change the password. press Enter, an authentication token manipulation error will.

Apologise: Authentication token manipulation error ubuntu root

Apache php http 500 error
Error c4430 missing type specifier
Authentication token manipulation error ubuntu root
Authentication token manipulation error ubuntu root
Authentication token manipulation error ubuntu root

In Linux, the passwd command is used to set or change user account passwords, while using this command sometimes users may encountered the error: “passwd: Authentication token manipulation error” as shown in below example.

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, but a second after I am getting the following error messages.

# su - tecmint $ passwd tecmint Changing password for user tecmint Changing password for tecmint (current) UNIX password: passwd: Authentication token manipulation error

In this article, we will explain different ways of fixing “passwd: Authentication token manipulation error” in Linux systems.

1. 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 7.

$ sudo reboot

If this fails, try out the next solutions.

2. Set Correct PAM Module Settings

Another possible cause 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 found in /etc/pam.d/.

$ ls -l /etc/pam.d/ -rw-r--r-- 1 root root 142 Mar 23 2017 abrt-cli-root -rw-r--r-- 1 root root 272 Mar 22 2017 atd -rw-r--r-- 1 root root 192 Jan 26 07:41 chfn -rw-r--r-- 1 root root 192 Jan 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-- 1 root root 115 Nov 11 2010 eject lrwxrwxrwx 1 root root 19 Apr 12 2012 fingerprint-auth -> fingerprint-auth-ac -rw-r--r-- 1 root root 659 Apr 10 2012 fingerprint-auth-ac -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 18 2016 newrole -rw-r--r-- 1 root root 154 Mar 22 2017 other -rw-r--r-- 1 root root 146 Nov 23 2015 passwd lrwxrwxrwx 1 root root 16 Apr 12 2012 password-auth -> password-auth-ac -rw-r--r-- 1 root root 896 Apr 10 2012 password-auth-ac .

For instance a mis-configured /etc/pam.d/common-password file can result into this error, running the pam-auth-update command with root privileges can fix the issue.

$ sudo pam-auth-update

3. Remount Root Partition

You might also see this error if the partition is mounted as read only, which means no file can be modified thus a user’s password can’t be set or changed. To fix this error, you need to mount the root partition as as read/write as shown.

$ sudo mount -o remount,rw /

4. Set Correct Permissions on Shadow File

Wrong permissions on the /etc/shadow file, which stores actual passwords for user accounts in encrypted format can also cause this error. To check the permissions on this file, use the following command.

$ ls -l /etc/shadow

To set the correct permissions on it, use the chmod command as follows.

$ sudo chmod 0640 /etc/shadow

5. Repair and Fix Filesystem Errors

Minor storage drive or filesystem errors can also cause the error in question. You can use Linux disk scanning tools such as fsck to fix authentication token manipulation error ubuntu root errors.

6. Free Up Disk Space

Furthermore, if your disk is full, then you can not modify any file on the disk especially when file’s size is meant to increase. This can also cause the above error. In this case, read our following articles to clean up disk space can help solve this error.

  1. Agedu – A Useful Tool for Tracking Down Wasted Disk Space in Linux
  2. BleachBit – A Free Disk Space Cleaner and Privacy Guard for Linux Systems
  3. How to Find and Remove Duplicate/Unwanted Files in Linux Using ‘FSlint’ Tool

You will also find these articles relating to managing user passwords in Linux.

  1. How to Reset Forgotten Root Password in RHEL/CentOS and Fedora
  2. How to Force User to Change Password at Next Login in Linux
  3. How to Run ‘sudo’ Command Without Entering a Password in Linux

That’s it for now! If you know any other solution to fix “passwd: Authentication token manipulation error”, let us know via the feedback form below. We will be grateful for your contribution.

Tags Authentication token manipulation error ubuntu root FAQ's

If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts? do ask for help in the comments section.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, authentication token manipulation error ubuntu root, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

authentication token manipulation error,password unchanged

I've been battling my Toshiba satellite with Kali Linux and the 2017 ISO file installed. After trying to update and upgrade the system, it crashed, and I tried rebooting it; then, it kept changing from the grub boot mood till internal error delphi until I started testing the tty1,2,3 console, but I kept getting incorrect password despite inputting the original and known password I created the box with, authentication token manipulation error ubuntu root. So I started editing the grub booting with the "rw init=/bin/bash code, and then I learned I can't even change my password even after mounting the drive and changing permissions. The sudo command doesn't work, and I get this 302 error swfupload error.

The images contain a few of the commands I've tried. Also, when I do pam-auth-update, it says unable to access the libcrypt file. And I can't view the whole files listed to sport the exact lib script because I can't scroll up from the boot console to check the entire files listed.

https://i.stack.imgur.com/rmmwc.png

https://i.stack.imgur.com/UvqDE.png

https://i.stack.imgur.com/7b8ks.jpghttps://i.stack.imgur.com/UvqDE.pnghttps://i.stack.imgur.com/lM3SN.jpghttps://i.stack.imgur.com/kVRPL.jpg

passwd command is used to set or reset user passwords in Linux, authentication token manipulation error ubuntu root. But sometimes while using this command, you may get an error ‘passwd: Authentication token manipulation error’. In this article, we will learn how to fix this error.

How to Fix Passwd Authentication Token Manipulation Error

Let us say you log into Linux and run passwd command to change password of user test. You are prompted for its new password and after you enter it, you see the following error message.

# su - test $ passwd test Changing password for user test Changing password for test (current) UNIX password: passwd: Authentication token manipulation error

Here are the different ways to fix the above error.

1. Reboot System

The most common way to fix this problem is to simply reboot your system

$ sudo reboot

If this does not work, then try the next approach.

2. Update PAM Module Settings

PAM (Pluggable Authentication Module) is an important Linux module that controls system-wide and application-wide user authentication. If it is not configured properly, it can lead to many authentication related issues in your system, authentication token manipulation error ubuntu root. Sometimes you may get this error because of incorrect PAM settings, which result in passwd being unable to retrieve the right authentication token.

You can check PAM settings with the following command.

$ ls -l /etc/pam.d/

To fix this problem, run the following command to reset the PAM settings.

$ sudo pam-auth-update

3. Remount Root Partition

Sometimes you may also get this error if your root partition is mounted as read only. In such cases, you cannot modify any files on your root partition and therefore passwd command will be unable to update /etc/shadow file which stores all user passwords on your system.

To fix this error, you can simply remount the root partition as read/write using the following command.

$ sudo mount -o remount,rw /

4. Update Permissions of /etc/shadow

As mentioned earlier, /etc/shadow file stores the actual passwords of all users in Linux. If it does not have the right permissions, passwd command will be unable to update it, authentication token manipulation error ubuntu root. Run the following command to check the file permission of /etc/shadow file.

$ ls -l /etc/shadow

And run the following command to update it.

$ sudo chmod 0640 /etc/shadow

5. Use fsck

You may also get this error if your disk is corrupted, authentication token manipulation error ubuntu root, or error number 1130 mysql errors in it. Run fsck command to scan your disk for errors.

Similarly, if your disk is about to be full, then Linux may prevent you from modifying any files on it, since it may increase in size. In such cases, delete a few unnecessary files & directories to free disk space and change passwords.

Also read:

How to Create Multiple User Accounts in Linux
How to Find Php.ini
How to Delete Rows from Dataframe Based on Condition
How to Iterate Over Rows in Pandas in Dataframe
How to Fix SettingWithCopyWarning

CentOS/RHEL, Linux, Ubuntupasswd authentication. permalink.

How to Fix “passwd: Authentication token manipulation error” in Linux

In this article, we are going to see how to Fix “passwd: Authentication token manipulation error” in Linux. In a Linux system when you try to change your password you will come across Authentication Token Manipulation Error and what this means is, for some reason your password change was not successful at all.

There can be many reasons for that like if you don’t supply the password output will give you the information “No password supply” or if the password is mismatched output will give you the information “Sorry, passwords do not match” then in both the cases you will be getting Authentication Token Manipulation Error. Well in these cases you know what is causing the error right and you can simply fix it

But there are cases where you won’t see any information, and the output will be an Authentication token manipulation error

Let’s see the other cases and how to fix the error:

Method 1: Reboot System

Try rebooting the system it does work, and you won’t get the same error

$ sudo reboot

After rebooting the system try again it does fix the error.

Method 2: Set Correct Permissions on Shadow File.

In a Linux system, the /etc/shadow file keeps the password or stores the actual password for a user account in an encrypted format and this can be the reason behind the error. It can be fixed by setting the correct permission on it

To set the correct permissions on it, use the below chmod command.

$ sudo chmod 0640 /etc/shadow

How to Fix “passwd: Authentication token manipulation error” in Linux

Method 3: Remount Root Partition

If the authentication token manipulation error ubuntu root is mounted as read-only as you will get the error that means no files can be modified, which means a user’s password can’t be changed, since you have to change the password you must mount the root partition as read/write 

The below command will do that and will fix the dirt 3 steam error sudo mount -o remount,rw /

How to Fix “passwd: Authentication token manipulation error” in Linux

Method 4: Clean the Disk Space

Sometimes, when your disk gets full then also creates an Authentication token manipulation error. So in this case we will clear all the space and try to log in again. There are some tools you can use to clean the disk space: Agedu, BleachBit.

Method 5: Repair the Filesystem file.

We can also use this technique to overcome this error, you can use disk cleaning space such as fsck tools.

Fixing 'Authentication Token Manipulation Error' in Ubuntu Linux

Recently, I was changing password of a user in Linux when I encountered this ‘Authentication Token Manipulation Error’.

I used the usual passwd command to change the password and it threw me this error and password was not changed.

Fixing Authentication Token Manipulation Error in Ubuntu

The ‘Authentication Token Manipulation Error’ simply means that for some reasons, the password change wasn’t successful.

There could be a number of reasons for that. In simple cases, you’ll see the root cause of the issue in the output itself. For example, if you didn’t supply a password, you should see it in the error:

Similarly, if the password retype mismatched, it will show that info as well:

That’s easy because you know what caused the issue and you can take a corrective action based on that. But you might not always be that lucky because in some cases, you won’t see any useful information, just the error.

Let’s see some of these cases and fix this issue.

Method 1

If you know the Linux directory structure, you know that the /etc/shadow directory keeps the password in encrypted format along with a few other information about users and their password.

This is why you should make sure that you have the permission to read and write on authentication token manipulation error ubuntu root file. Since you’ll be changing the password as the superuser, this file should have read and write permission for the root.

If that’s not the case, authentication token manipulation error ubuntu root you should set the correct permission:

Method 2

The method 1 will work in most cases. But in my case, authentication token manipulation error ubuntu root, I had to remount root partition with read and write permission. I was trying to reset my admin password in Ubuntu actually.

In some rare cases, your disk might be so full that you cannot make any changes to the /etc/shadow file. But if that’s the case, then you’ll be facing a lot of other issues as well.

Did it work for you?

I shared what worked for me and I can only hope that it worked for you as well. Did it? Which method worked for you? Do mention it in the comments.

passwd: authentication token manipulation error in Linux

We use the passwd command in Linux to set or change user account passwords, however, while using it, we may encounter the error: “passwd: Authentication token manipulation error”

As part of our Server Management Services, we assist our customers with several Linux queries.

Today, let us see authentication token manipulation error ubuntu root to fix this error.

 

passwd: authentication token manipulation error in Linux

Recently, we had a customer who tried to log in to his CentOS server with the username “bob“. He was trying to change the password using passwd utility. However, within seconds he receives the following error message:

# su - bob $ passwd bob Changing password for user bob Changing password for bob (current) UNIX password: passwd: Authentication token manipulation error

 

How to fix it?

Moving ahead, let us see the methods our Support Techs suggest in order to fix this.

1. Set Correct PAM Module Settings

A possible cause of the error can be the wrong PAM (Pluggable Authentication Module) settings. It can make the module unable to obtain the new authentication token entered.

We can find the various settings for PAM in /etc/pam.d/.

For instance, a misconfigured /etc/pam.d/common-password file can result in this error.

We can fix this issue by running the pam-auth-update command with root privileges:

2. Set Correct Permissions on Shadow File

/etc/shadow dir command errorlevel stores actual passwords for user accounts in an encrypted format. Wrong permission in this file can also cause the error.

To check the permissions on this file, we run:

Then to set the correct permissions on it, we use the chmod command:

3, authentication token manipulation error ubuntu root. Remount Root Partition

We might also see this error if the partition is mounted as read-only. This means no file can modify. Thus we cannot set or change a user’s password.

To fix this error, we need to mount the root partition as read/write:

4. Free Up Disk Space

Suppose, our disk is full. In such a case, we cannot modify any file on the disk especially when the file’s authentication token manipulation error ubuntu root is meant to increase. This may eventually cause the error.

Here, we can try to remove any unwanted files so that there is no issue of lack of space.

In order to make the space, it is easier if we use tools like FSlint or BleachBit. They can help us to identify unwanted files and clean up the disk thus providing more space.

4. Reboot System

Another possible method is to try and reboot the system. This may fix the issue in some cases.

We can do this using:

5. Repair and Fix Filesystem Errors

If none of the above methods work, we can try this method.

Minor storage drive or filesystem errors can also cause the error in question. Linux disk scanning tools such as fsck can fix such errors.

However, our Support Techs recommend trying out fsck commands on test Linux servers with the help of system administrators or if we are pretty much experienced with fsck and it works.

We must always keep in mind to unmount a partition before we run fsck on it.

[Need help with the procedures? We can help you]

 

Conclusion:

In short, passwd: authentication token manipulation error in Linux occurs when we try to change the password via the passwd command. Today, we saw how our Support Techs fix this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

passwd: Authentication token manipulation error

I am running a Ubuntu 12 machine, and have recently been working to secure it. I made all the changes from this guide. I am not running a Linode, but I used these as a starting point for setting up the firewall and such.

All went smoothly, and I have been using the machine for some time now. I tried to lock some users' accounts, with the command, authentication token manipulation error ubuntu root, and that was successful. However, when I try to add a new user, or change my password, I have the strangest error:

Or, when adding a new user:

I searched for this error, and the vast majority of problems were solved by remounting / as read and write. However, authentication token manipulation error ubuntu root, this is not the problem, as it is mounted as read and write (I confirmed). Note that the same error is encountered from different users, and from root trying to change other users' passwords.

Do you have any insight as to why I am (seemingly spontaneously) getting this error? I have not done any manual editing of the or files--or really made any change to user authentication at all.

In case it is relevant:

authentication token manipulation error ubuntu root

Thematic video

Ubuntu: Authentication token manipulation error

Authentication token manipulation error ubuntu root - you tell

Fixing 'Authentication Token Manipulation Error' in Ubuntu Linux

Recently, I was changing password of a user in Linux when I encountered this ‘Authentication Token Manipulation Error’.

I used the usual passwd command to change the password and it threw me this error and password was not changed.

Fixing Authentication Token Manipulation Error in Ubuntu

The ‘Authentication Token Manipulation Error’ simply means that for some reasons, the password change wasn’t successful.

There could be a number of reasons for that. In simple cases, you’ll see the root cause of the issue in the output itself. For example, if you didn’t supply a password, you should see it in the error:

Similarly, if the password retype mismatched, it will show that info as well:

That’s easy because you know what caused the issue and you can take a corrective action based on that. But you might not always be that lucky because in some cases, you won’t see any useful information, just the error.

Let’s see some of these cases and fix this issue.

Method 1

If you know the Linux directory structure, you know that the /etc/shadow directory keeps the password in encrypted format along with a few other information about users and their password.

This is why you should make sure that you have the permission to read and write on this file. Since you’ll be changing the password as the superuser, this file should have read and write permission for the root.

If that’s not the case, then you should set the correct permission:

Method 2

The method 1 will work in most cases. But in my case, I had to remount root partition with read and write permission. I was trying to reset my admin password in Ubuntu actually.

In some rare cases, your disk might be so full that you cannot make any changes to the /etc/shadow file. But if that’s the case, then you’ll be facing a lot of other issues as well.

Did it work for you?

I shared what worked for me and I can only hope that it worked for you as well. Did it? Which method worked for you? Do mention it in the comments.

In Linux, the passwd command is used to set or change user account passwords, while using this command sometimes users may encountered the error: “passwd: Authentication token manipulation error” as shown in below example.

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, but a second after I am getting the following error messages.

# su - tecmint $ passwd tecmint Changing password for user tecmint Changing password for tecmint (current) UNIX password: passwd: Authentication token manipulation error

In this article, we will explain different ways of fixing “passwd: Authentication token manipulation error” in Linux systems.

1. 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 7.

$ sudo reboot

If this fails, try out the next solutions.

2. Set Correct PAM Module Settings

Another possible cause 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 found in /etc/pam.d/.

$ ls -l /etc/pam.d/ -rw-r--r-- 1 root root 142 Mar 23 2017 abrt-cli-root -rw-r--r-- 1 root root 272 Mar 22 2017 atd -rw-r--r-- 1 root root 192 Jan 26 07:41 chfn -rw-r--r-- 1 root root 192 Jan 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-- 1 root root 115 Nov 11 2010 eject lrwxrwxrwx 1 root root 19 Apr 12 2012 fingerprint-auth -> fingerprint-auth-ac -rw-r--r-- 1 root root 659 Apr 10 2012 fingerprint-auth-ac -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 18 2016 newrole -rw-r--r-- 1 root root 154 Mar 22 2017 other -rw-r--r-- 1 root root 146 Nov 23 2015 passwd lrwxrwxrwx 1 root root 16 Apr 12 2012 password-auth -> password-auth-ac -rw-r--r-- 1 root root 896 Apr 10 2012 password-auth-ac ....

For instance a mis-configured /etc/pam.d/common-password file can result into this error, running the pam-auth-update command with root privileges can fix the issue.

$ sudo pam-auth-update

3. Remount Root Partition

You might also see this error if the partition is mounted as read only, which means no file can be modified thus a user’s password can’t be set or changed. To fix this error, you need to mount the root partition as as read/write as shown.

$ sudo mount -o remount,rw /

4. Set Correct Permissions on Shadow File

Wrong permissions on the /etc/shadow file, which stores actual passwords for user accounts in encrypted format can also cause this error. To check the permissions on this file, use the following command.

$ ls -l /etc/shadow

To set the correct permissions on it, use the chmod command as follows.

$ sudo chmod 0640 /etc/shadow

5. Repair and Fix Filesystem Errors

Minor storage drive or filesystem errors can also cause the error in question. You can use Linux disk scanning tools such as fsck to fix such errors.

6. Free Up Disk Space

Furthermore, if your disk is full, then you can not modify any file on the disk especially when file’s size is meant to increase. This can also cause the above error. In this case, read our following articles to clean up disk space can help solve this error.

  1. Agedu – A Useful Tool for Tracking Down Wasted Disk Space in Linux
  2. BleachBit – A Free Disk Space Cleaner and Privacy Guard for Linux Systems
  3. How to Find and Remove Duplicate/Unwanted Files in Linux Using ‘FSlint’ Tool

You will also find these articles relating to managing user passwords in Linux.

  1. How to Reset Forgotten Root Password in RHEL/CentOS and Fedora
  2. How to Force User to Change Password at Next Login in Linux
  3. How to Run ‘sudo’ Command Without Entering a Password in Linux

That’s it for now! If you know any other solution to fix “passwd: Authentication token manipulation error”, let us know via the feedback form below. We will be grateful for your contribution.

Tags Linux FAQ's

If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts? do ask for help in the comments section.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

How to Fix “passwd: Authentication token manipulation error” in Linux

In this article, we are going to see how to Fix “passwd: Authentication token manipulation error” in Linux. In a Linux system when you try to change your password you will come across Authentication Token Manipulation Error and what this means is, for some reason your password change was not successful at all.

There can be many reasons for that like if you don’t supply the password output will give you the information “No password supply” or if the password is mismatched output will give you the information “Sorry, passwords do not match” then in both the cases you will be getting Authentication Token Manipulation Error. Well in these cases you know what is causing the error right and you can simply fix it

But there are cases where you won’t see any information, and the output will be an Authentication token manipulation error

Let’s see the other cases and how to fix the error:

Method 1: Reboot System

Try rebooting the system it does work, and you won’t get the same error

$ sudo reboot

After rebooting the system try again it does fix the error.

Method 2: Set Correct Permissions on Shadow File.

In a Linux system, the /etc/shadow file keeps the password or stores the actual password for a user account in an encrypted format and this can be the reason behind the error. It can be fixed by setting the correct permission on it

To set the correct permissions on it, use the below chmod command.

$ sudo chmod 0640 /etc/shadow

How to Fix “passwd: Authentication token manipulation error” in Linux

Method 3: Remount Root Partition

If the partition is mounted as read-only as you will get the error that means no files can be modified, which means a user’s password can’t be changed, since you have to change the password you must mount the root partition as read/write 

The below command will do that and will fix the error:

$ sudo mount -o remount,rw /

How to Fix “passwd: Authentication token manipulation error” in Linux

Method 4: Clean the Disk Space

Sometimes, when your disk gets full then also creates an Authentication token manipulation error. So in this case we will clear all the space and try to log in again. There are some tools you can use to clean the disk space: Agedu, BleachBit.

Method 5: Repair the Filesystem file.

We can also use this technique to overcome this error, you can use disk cleaning space such as fsck tools.

authentication token manipulation error,password unchanged

I've been battling my Toshiba satellite with Kali Linux and the 2017 ISO file installed. After trying to update and upgrade the system, it crashed, and I tried rebooting it; then, it kept changing from the grub boot mood till eternity until I started testing the tty1,2,3 console, but I kept getting incorrect password despite inputting the original and known password I created the box with. So I started editing the grub booting with the "rw init=/bin/bash code, and then I learned I can't even change my password even after mounting the drive and changing permissions. The sudo command doesn't work, and I get this libcrypt.so.1.1 error.

The images contain a few of the commands I've tried. Also, when I do pam-auth-update, it says unable to access the libcrypt file. And I can't view the whole files listed to sport the exact lib script because I can't scroll up from the boot console to check the entire files listed.

https://i.stack.imgur.com/rmmwc.png

https://i.stack.imgur.com/UvqDE.png

https://i.stack.imgur.com/7b8ks.jpghttps://i.stack.imgur.com/UvqDE.pnghttps://i.stack.imgur.com/lM3SN.jpghttps://i.stack.imgur.com/kVRPL.jpg

passwd: Authentication token manipulation error

I am running a Ubuntu 12 machine, and have recently been working to secure it. I made all the changes from this guide. I am not running a Linode, but I used these as a starting point for setting up the firewall and such.

All went smoothly, and I have been using the machine for some time now. I tried to lock some users' accounts, with the command, and that was successful. However, when I try to add a new user, or change my password, I have the strangest error:

Or, when adding a new user:

I searched for this error, and the vast majority of problems were solved by remounting / as read and write. However, this is not the problem, as it is mounted as read and write (I confirmed). Note that the same error is encountered from different users, and from root trying to change other users' passwords.

Do you have any insight as to why I am (seemingly spontaneously) getting this error? I have not done any manual editing of the or files--or really made any change to user authentication at all.

In case it is relevant:

passwd command is used to set or reset user passwords in Linux. But sometimes while using this command, you may get an error ‘passwd: Authentication token manipulation error’. In this article, we will learn how to fix this error.

How to Fix Passwd Authentication Token Manipulation Error

Let us say you log into Linux and run passwd command to change password of user test. You are prompted for its new password and after you enter it, you see the following error message.

# su - test $ passwd test Changing password for user test Changing password for test (current) UNIX password: passwd: Authentication token manipulation error

Here are the different ways to fix the above error.

1. Reboot System

The most common way to fix this problem is to simply reboot your system

$ sudo reboot

If this does not work, then try the next approach.

2. Update PAM Module Settings

PAM (Pluggable Authentication Module) is an important Linux module that controls system-wide and application-wide user authentication. If it is not configured properly, it can lead to many authentication related issues in your system. Sometimes you may get this error because of incorrect PAM settings, which result in passwd being unable to retrieve the right authentication token.

You can check PAM settings with the following command.

$ ls -l /etc/pam.d/

To fix this problem, run the following command to reset the PAM settings.

$ sudo pam-auth-update

3. Remount Root Partition

Sometimes you may also get this error if your root partition is mounted as read only. In such cases, you cannot modify any files on your root partition and therefore passwd command will be unable to update /etc/shadow file which stores all user passwords on your system.

To fix this error, you can simply remount the root partition as read/write using the following command.

$ sudo mount -o remount,rw /

4. Update Permissions of /etc/shadow

As mentioned earlier, /etc/shadow file stores the actual passwords of all users in Linux. If it does not have the right permissions, passwd command will be unable to update it. Run the following command to check the file permission of /etc/shadow file.

$ ls -l /etc/shadow

And run the following command to update it.

$ sudo chmod 0640 /etc/shadow

5. Use fsck

You may also get this error if your disk is corrupted, or has errors in it. Run fsck command to scan your disk for errors.

Similarly, if your disk is about to be full, then Linux may prevent you from modifying any files on it, since it may increase in size. In such cases, delete a few unnecessary files & directories to free disk space and change passwords.

Also read:

How to Create Multiple User Accounts in Linux
How to Find Php.ini
How to Delete Rows from Dataframe Based on Condition
How to Iterate Over Rows in Pandas in Dataframe
How to Fix SettingWithCopyWarning

CentOS/RHEL, Linux, Ubuntupasswd authentication. permalink.

passwd: authentication token manipulation error in Linux

We use the passwd command in Linux to set or change user account passwords, however, while using it, we may encounter the error: “passwd: Authentication token manipulation error”

As part of our Server Management Services, we assist our customers with several Linux queries.

Today, let us see how to fix this error.

 

passwd: authentication token manipulation error in Linux

Recently, we had a customer who tried to log in to his CentOS server with the username “bob“. He was trying to change the password using passwd utility. However, within seconds he receives the following error message:

# su - bob $ passwd bob Changing password for user bob Changing password for bob (current) UNIX password: passwd: Authentication token manipulation error

 

How to fix it?

Moving ahead, let us see the methods our Support Techs suggest in order to fix this.

1. Set Correct PAM Module Settings

A possible cause of the error can be the wrong PAM (Pluggable Authentication Module) settings. It can make the module unable to obtain the new authentication token entered.

We can find the various settings for PAM in /etc/pam.d/.

For instance, a misconfigured /etc/pam.d/common-password file can result in this error.

We can fix this issue by running the pam-auth-update command with root privileges:

2. Set Correct Permissions on Shadow File

/etc/shadow file stores actual passwords for user accounts in an encrypted format. Wrong permission in this file can also cause the error.

To check the permissions on this file, we run:

Then to set the correct permissions on it, we use the chmod command:

3. Remount Root Partition

We might also see this error if the partition is mounted as read-only. This means no file can modify. Thus we cannot set or change a user’s password.

To fix this error, we need to mount the root partition as read/write:

4. Free Up Disk Space

Suppose, our disk is full. In such a case, we cannot modify any file on the disk especially when the file’s size is meant to increase. This may eventually cause the error.

Here, we can try to remove any unwanted files so that there is no issue of lack of space.

In order to make the space, it is easier if we use tools like FSlint or BleachBit. They can help us to identify unwanted files and clean up the disk thus providing more space.

4. Reboot System

Another possible method is to try and reboot the system. This may fix the issue in some cases.

We can do this using:

5. Repair and Fix Filesystem Errors

If none of the above methods work, we can try this method.

Minor storage drive or filesystem errors can also cause the error in question. Linux disk scanning tools such as fsck can fix such errors.

However, our Support Techs recommend trying out fsck commands on test Linux servers with the help of system administrators or if we are pretty much experienced with fsck and it works.

We must always keep in mind to unmount a partition before we run fsck on it.

[Need help with the procedures? We can help you]

 

Conclusion:

In short, passwd: authentication token manipulation error in Linux occurs when we try to change the password via the passwd command. Today, we saw how our Support Techs fix this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

1 Comments

Leave a Comment