[SOLVED] Unable to change password for a specific user.
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am able to change passwords of all users except one. Any help regarding this issue will be highly appreciated. Thanks in advance.
[root@EMS003 ~]# uname -a
Linux MS003 2.6.18-408.el5 #1 SMP Fri Dec 11 14:03:08 EST 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@EMS003 ~]# passwd smith
Changing password for user smith.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@EMS003 ~]# passwd helpdesk
Changing password for user helpdesk.
Changing password for helpdesk
(current) password:
Account cannot be accessed at this time.
Please contact your system administrator.
passwd: Authentication information cannot be recovered
do you have a user named helpdesk? how is this user configured?
Thanks for the response, Yes I have created the user helpdesk. I also tried by deleting the user 'helpdesk' and then recreated it. user's login shell is bin/bash, group is 'helpdesk' and its home directory is /home/helpdesk
using adduser and deluser to create your users, as adduser creates the home dir without further prompting, whereas useradd does not. if it is not there then try installing it.
using adduser and deluser to create your users, as adduser creates the home dir without further prompting, whereas useradd does not. if it is not there then try installing it.
Sorry for the late reply. Yes there is a directory in /home/ named helpdesk with the permission 700.
Hello,
I am able to change passwords of all users except one. Any help regarding this issue will be highly appreciated. Thanks in advance.
Code:
[root@EMS003 ~]# uname -a
Linux MS003 2.6.18-408.el5 #1 SMP Fri Dec 11 14:03:08 EST 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@EMS003 ~]# passwd smith
Changing password for user smith.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@EMS003 ~]# passwd helpdesk
Changing password for user helpdesk.
Changing password for helpdesk
(current) password:
Account cannot be accessed at this time.
Please contact your system administrator.
passwd: Authentication information cannot be recovered
I have bolded a line in what you posted for emphasis. That isn't a typical message you'd see...unless the account was created in Active Directory/LDAP. Either the account exists in multiple locations (local *AND* AD/LDAP), or there is some sort of lock on the account on the authentication server.
What version/distro of Linux are you using, what authentication methods, and how was this user created initially?
I have bolded a line in what you posted for emphasis. That isn't a typical message you'd see...unless the account was created in Active Directory/LDAP. Either the account exists in multiple locations (local *AND* AD/LDAP), or there is some sort of lock on the account on the authentication server.
What version/distro of Linux are you using, what authentication methods, and how was this user created initially?
This user was created as squirrelmail mail user. I am using Linux 5.11. I am able to change all others users account password except this one. So I deleted it using administration>'users and groups' gui utility.
This user was created as squirrelmail mail user. I am using Linux 5.11. I am able to change all others users account password except this one. So I deleted it using administration>'users and groups' gui utility.
Ok...then you don't have a SYSTEM user (which is what the passwd utility addresses), but a Squirrelmail user. Use Squirrelmail to change the password.
I got this. helpdesk is a Active Directory user which was locked due to multiple login attempts using wrong passwords. I reset the password in AD and tried same password to login. Fortunately I am now able to login into squirrelmail.
Thank you all for your solution and support. Cheers!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.