Permission denied error when trying to update a user’s password: passwd

We’re now talking about a rare or some common error encountered by sys admins or network peeps in office or say at home doing there daily chores on there respected Linux box. Here is what I’ve found as per my readers request:

When I try to run

sudo passwd USERNAME

I get the error:

root@hostname:~# sudo passwd USERNAME passwd:Permission denied passwd:password unchanged root@hostname:~#

When I try to do the steps for the “The Drastic Measures”, I notice that the shadow file does not show what would usually indicate an encrypted password for the user. Hence it becomes impossible for me in order to change or set a new password like.

Solution:

vi /etc/pam.d/common-password
password        [success=3 default=ignore]      
pam_unix.so obscure sha512

Change it to “success=2”

/*_*\

Akash Angle

I am a Full time Linux user who has quit using Windows for unknown reasons, making my life truly open source.

Recent Posts

Get the most juice from your ISP/router — setting MTU size & other handy tweaks

This is not an ad-vocation by any means for TP-link branding, however a real life…

6 months ago

How to make any Android phone up-to 3x faster – Developer options unleashed

First of all we need to hit the kernel version on any Android device. You…

6 months ago

systemd-resolve command not found in Ubuntu Desktop

Use resolvectl status instead. It's like something deprecates and suddenly things get broken! In systemd…

11 months ago

How to exclude multiple directories with rsync?

Geeky question: This is what people and friends have tried: rsync -arv --exclude "/home/john/.ccache:/home/ben/build" /home/john…

11 months ago

How to resolve apt-get -f not working

You might encounter this error which appears to be very common on Debian based Distro's…

11 months ago

How to install Broadcom STA wireless drivers on Kali Linux

PS: This article is for only Kali Linux users, that too having a Broadcom Wireless…

11 months ago