LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2019, 11:57 PM   #1
dhar_bikramtm
LQ Newbie
 
Registered: Sep 2019
Posts: 12

Rep: Reputation: Disabled
cant ssh getting permission denied error.


After changing password a user complained he cant able to login. He is getting " permission denied ,try after some time " error.Other user able to do ssh.failed user is a old user and can do ssh in past.

Kindly help me from where to start ?
 
Old 09-10-2019, 02:17 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Is the user using the new password?
How was the password changed? By whom?
 
Old 09-10-2019, 02:41 AM   #3
dhar_bikramtm
LQ Newbie
 
Registered: Sep 2019
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
Is the user using the new password?
How was the password changed? By whom?
yes user is used new password and changed by him
but when i have changed his password ( by root ) still it i not working


chage :::

Last password change : Sep 09, 2019
Password expires : Oct 09, 2019
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 30
Number of days of warning before password expires : 7

passwd :

tamha500 PS 2019-09-09 0 30 7 -1 (Password set, SHA512 crypt.)


/var/log/secure :

Sep 9 16:16:20 mkc-web sshd[7074]: pam_unix(sshd:account): expired password for user tamha500 (password aged)
Sep 9 16:16:20 mkc-web sshd[7074]: Accepted password for tamha500 from 10.77.36.98 port 59717 ssh2
Sep 9 16:16:20 mkc-web sshd[7074]: pam_unix(sshd:session): session opened for user tamha500 by (uid=0)
Sep 9 16:16:43 mkc-web passwd: pam_unix(passwd:chauthtok): password changed for tamha500
Sep 9 16:17:02 mkc-web sshd[7074]: pam_unix(sshd:session): session closed for user tamha500
Sep 9 16:17:34 mkc-web sshd[7092]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.77.36.98 user=tamha500
Sep 9 16:17:36 mkc-web sshd[7092]: Failed password for tamha500 from 10.77.36.98 port 59719 ssh2
Sep 9 16:20:57 mkc-web sshd[7186]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.77.36.98 user=tamha500
Sep 9 16:20:59 mkc-web sshd[7186]: Failed password for tamha500 from 10.77.36.98 port 60504 ssh2
Sep 9 16:21:14 mkc-web sshd[7186]: Failed password for tamha500 from 10.77.36.98 port 60504 ssh2
Sep 9 16:31:18 mkc-web sshd[7419]: Invalid user tamha500. from 10.77.36.98
Sep 9 16:31:18 mkc-web sshd[7420]: input_userauth_request: invalid user tamha500.
Sep 9 16:31:35 mkc-web sshd[7419]: pam_succeed_if(sshd:auth): error retrieving information about user tamha500.
Sep 9 16:31:37 mkc-web sshd[7419]: Failed password for invalid user tamha500. from 10.77.36.98 port 45591 ssh2
Sep 9 16:32:36 mkc-web passwd: pam_unix(passwd:chauthtok): password changed for tamha500
Sep 9 16:32:54 mkc-web su: pam_unix(su:session): session opened for user tamha500 by dhar501(uid=0)
Sep 9 16:33:04 mkc-web su: pam_unix(su:session): session closed for user tamha500
Sep 9 16:49:48 mkc-web su: pam_tally2(su:auth): user tamha500 (1032) tally 5, deny 3
Sep 9 16:50:13 mkc-web su: pam_unix(su:auth): authentication failure; logname=dhar501 uid=1031 euid=0 tty=pts/0 ruser=dhar501 rhost= user=tamha500
Sep 9 16:53:35 mkc-web su: pam_tally2(su:auth): user tamha500 (1032) tally 6, deny 3
Sep 9 16:57:59 mkc-web usermod[8022]: lock user 'tamha500' password
Sep 9 16:58:51 mkc-web usermod[8029]: unlock user 'tamha500' password
Sep 9 16:59:21 mkc-web passwd: pam_unix(passwd:chauthtok): password changed for tamha500
Sep 9 16:59:49 mkc-web su: pam_unix(su:auth): authentication failure; logname=dhar501 uid=1031 euid=0 tty=pts/0 ruser=dhar501 rhost= user=tamha500
Sep 9 17:20:06 mkc-web sshd[8561]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.77.36.98 user=tamha500
Sep 9 17:20:07 mkc-web sshd[8561]: Failed password for tamha500 from 10.77.36.98 port 55037 ssh2
 
Old 09-10-2019, 04:36 AM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Perhaps the password didn’t actually change because the new password doesn’t pass the password rules.
I had that problem once when the new password was too short. Got no indication that the change didn’t work, it just didn’t change.
Does the new password comply with the rules?

(That’s just a SWAG..)
 
Old 09-10-2019, 06:22 AM   #5
dhar_bikramtm
LQ Newbie
 
Registered: Sep 2019
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
Perhaps the password didn’t actually change because the new password doesn’t pass the password rules.
I had that problem once when the new password was too short. Got no indication that the change didn’t work, it just didn’t change.
Does the new password comply with the rules?

(That’s just a SWAG..)
new password has been in effect pls check the below line from /var/log/secure

Sep 9 16:32:36 mkc-web passwd: pam_unix(passwd:chauthtok): password changed for tamha500
 
Old 09-10-2019, 08:54 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by dhar_bikramtm View Post
new password has been in effect pls check the below line from /var/log/secure

Sep 9 16:32:36 mkc-web passwd: pam_unix(passwd:chauthtok): password changed for tamha500
Read the LQ Rules about not using text-speak. And since other users can log in, and you know this password (since you just changed it), have YOU tried to log in as that user, to see what happens?? Have you done any basic troubleshooting, such as asking that user how they're logging in, what password they're using, etc? Could very well be they have a password saved somewhere, and they're just hitting ENTER.
 
Old 09-10-2019, 02:26 PM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by dhar_bikramtm View Post
new password has been in effect pls check the below line from /var/log/secure

Sep 9 16:32:36 mkc-web passwd: pam_unix(passwd:chauthtok): password changed for tamha500
Yeah. That happened in the case I mentioned, too. As I recall there was an error in some obtuse log file that indicated the reason the password was rejected, but everything else look as if it had been changed.

Of course, in that case, the old password still worked, since it hadn't been changed and hadn't expired.

I suppose it's not unlike the "file not found" error one gets when the user simply doesn't have permission to access the file: "security by obscurity"
 
  


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
mkdir throws Permission Denied error in a directoy even with root ownership and 777 permission surajchalukya Linux - Security 14 09-03-2012 08:34 AM
ssh permission denied error Hailey's_Comet Linux - Networking 4 05-30-2009 05:49 PM
Getting permission denied when reading in password for use with Net::SSH::Perl exceed1 Programming 0 01-30-2009 04:25 PM
What are possible reasons for getting "permission denied" by ssh? tsuren Linux - Networking 5 09-26-2007 12:24 PM
ssh login error : Permission denied, please try again powah Linux - Security 3 07-12-2007 12:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 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