LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 08-18-2018, 01:08 AM   #1
gaatha2508
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Rep: Reputation: Disabled
Unhappy Unable to change password for a specific user.


Hello,

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

--**--
 
Old 08-18-2018, 03:47 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
do you have a user named helpdesk? how is this user configured?
 
Old 08-18-2018, 05:00 AM   #3
gaatha2508
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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

cat /etc/passwd|grep helpdesk
helpdesk:x:572:572::/home/helpdesk:/bin/bash

cat /etc/passwd-|grep helpdesk
helpdesk:x:572:572::/home/helpdesk:/bin/bash

cat /etc/shadow|grep helpdesk
helpdesk:$1$Encrypttext$Encrypttext/Encrypttext.:17761:0:99999:7:::

cat /etc/shadow-|grep helpdesk
helpdesk:$1$Encrypttext$Encrypttext/Encrypttext.:17761:0:99999:7:::

cat /etc/group|grep helpdesk
helpdesk:x:572:

cat /etc/group-|grep helpdesk
helpdesk:x:572:

Last edited by gaatha2508; 08-18-2018 at 05:09 AM.
 
Old 08-18-2018, 09:52 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
was that home dir created?
 
Old 08-18-2018, 10:46 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
exaclty you forgot to check
Code:
ls /home
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.
 
1 members found this post helpful.
Old 08-19-2018, 05:29 AM   #6
gaatha2508
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
was that home dir created?
Quote:
Originally Posted by BW-userx View Post
exaclty you forgot to check
Code:
ls /home
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.
 
Old 08-19-2018, 05:39 AM   #7
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by gaatha2508 View Post
Sorry for the late reply. Yes there is a directory in /home/ named helpdesk with the permission 700.

Exactly how did you create this user?
 
Old 08-19-2018, 08:45 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gaatha2508 View Post
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?
 
1 members found this post helpful.
Old 08-19-2018, 10:17 AM   #9
gaatha2508
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
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.
 
Old 08-19-2018, 10:21 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gaatha2508 View Post
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.
 
1 members found this post helpful.
Old 08-19-2018, 10:27 AM   #11
gaatha2508
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
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.
Thank you. I will update the result shortly.
 
Old 08-20-2018, 12:29 AM   #12
gaatha2508
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gaatha2508 View Post
Thank you. I will update the result shortly.
No luck.. I am not able to change squirrelmail password for this account also. Always saying incorrect user or password.
 
Old 08-20-2018, 01:21 AM   #13
gaatha2508
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thumbs up

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!
 
Old 08-20-2018, 06:50 AM   #14
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by gaatha2508 View Post
I got this. helpdesk is a Active Directory user
I asked about it in post #2.
 
1 members found this post helpful.
Old 08-20-2018, 12:33 PM   #15
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by pan64 View Post
I asked about it in post #2.
Yep...and I mentioned AD/LDAP in post #8 as well. We were both ignored.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to change SFTP user account password after password aging while login LittleMaster Linux - Newbie 3 06-18-2018 11:21 PM
unable to change user password nitinm Ubuntu 2 04-06-2018 03:54 AM
Unable to Change root or any user password in RHEL.5.4 Ashutosh Rawat Linux - Software 2 05-13-2014 08:49 AM
How to edit PAM DB of VSFTPD (..add user, delete user, change user password ) jsaravana87 Linux - Server 1 10-02-2012 08:49 AM
Local User unable to change password swampf0x Linux - Newbie 21 03-30-2012 07:50 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration