PAM? cannot login, ssh or su

 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support PAM? cannot login, ssh or su
# 1  
Old 04-18-2011
PAM? cannot login, ssh or su

look at this, as root user change passwd and su -:

Quote:
[root@t ~]# passwd billy
Changing password for user billy.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@t ~]# su - billy
su: incorrect password
I cannot ssh in or rlogin either,
# 2  
Old 04-18-2011
What OS is this? Does it have any kind of error log like /var/log/messages or /var/log/auth.log? What has been changed on this systems authentication mechanism? Did it work before some point in time?
# 3  
Old 04-18-2011
On linux systems, look in /var/log/secure

Also, on Solaris and Linux systems, the pam.d directory or pam.conf file will include a section for "login" and for "su". These might be "controlling" how a person can login. Finally, if the target does not have a valid login shell, you might get a message like this (but usually a different one)
# 4  
Old 04-18-2011
you can check /var/log/secure for pam entrys for determine error source.
or you change like these..

you must check your pam configuration files.
and be sure in line in su and sshd file.
Code:
auth include system-auth

and must require system-auth file in below lines for authentication.
Code:
auth        required      pam_env.so
auth        sufficient    pam_unix.so nullok try_first_pass
auth        requisite     pam_succeed_if.so uid >= 500 quiet
auth        required      pam_deny.so

of course this files can be as variants for auth issues.

regards
ygemici
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

Mac OS X LDAP client not accepting ssh or console logins (PAM error)

Hi Folks, I've install 389 Directory Server on a Centos 7.0 server. Over the last two days I've been trying to connect a MacBook running 10.10.5 to the server as a client and I'm having only partial success. I've "Joined" to my network Account Server, and set my LDAP Mappings to... (2 Replies)
Discussion started by: jlh
2 Replies

2. SuSE

PAM password change failed, pam error 20

Hi, I use a software which can create account on many system or application. One of resource which is managed by this soft his a server SUSE Linux Enterprise Server 10 (x86_64). patch level 3. This application which is an IBM application use ssh to launch command to create account in... (3 Replies)
Discussion started by: scabarrus
3 Replies

3. Shell Programming and Scripting

AIX pam ssh/sshd configuration not allowing sed or awk

This is a weird problem. Following is my code. /opt/quest/bin/vastool configure pam sshd /opt/quest/bin/vastool configure pam ssh cat /etc/pam.conf | \ awk '$1=="ssh"||$1=="sshd"||$1=="emagent"{sub("prohibit","aix",$NF);}1' OFS='\t' > /etc/pam.conf cat /etc/ssh/sshd_config | \ sed -e... (2 Replies)
Discussion started by: pjeedu2247
2 Replies

4. UNIX for Dummies Questions & Answers

PAM closing SSH session

Hello guys, You are my last hope. I googled for hours and tried so many things but I can't find a way to fix my problem. So there we go: I open a SSH tunnel to my linux vps. My client sends every 5-minutes a keepalive package and I also set the "ClientAliveInterval" value to 300 in the... (8 Replies)
Discussion started by: iamanewb
8 Replies

5. UNIX for Advanced & Expert Users

PAM Login denied

Hi All, While I was trying to login to the console of my machine I got the following error messages :: body { margin: 0 0 0 0; padding:0 0 0 0 }td,div { font-family:Tahoma;font-size:8pt;vertical-align:top }/* Copyright IBM Corp. 2011 All Rights Reserved. */body { margin:... (2 Replies)
Discussion started by: Pkumar Sachin
2 Replies

6. HP-UX

telnet login successful ,but ssh can not login

why I can login by telnet using root account but when i use login by ssh using root account it is not successful ,is it different password i am sure ssh service is started (2 Replies)
Discussion started by: alert0919
2 Replies

7. Solaris

SSH and PAM authentication issues on Solaris 10

This is a zone running Solaris 10u8 on a 6320 blade. The global zone is also running 10u8. One my users is attempting to change his password and getting a following screen: $ ssh remotesys Password: Warning: Your password has expired, please change it now. New Password: Re-enter new... (1 Reply)
Discussion started by: bluescreen
1 Replies

8. Solaris

PAM login library files corrupted, have ILOM, can I get root?

I was installing sfw sudo and its dependencies (libiconv, libintl, libgcc)on Solaris 10, running on an x86 x4200 and I corrupted some PAM library files. It's a standard Solaris 10 base install, with some added software & libraries from a vendor. I am on console trying to get root access back,... (1 Reply)
Discussion started by: Mariognarly
1 Replies

9. UNIX for Dummies Questions & Answers

help with ssh login

hi, i have red hat RHEL-5 on my machine, i ma trying to ssh login on remote machine root@localhost~]# ssh ip_address(of remote machine) it works fine if i know the password, i use wireless network so the ip keeps on changing,so is there any way to access the machine with some unique name, which... (1 Reply)
Discussion started by: ankita tux
1 Replies

10. Solaris

OPEN ssh with PAM &RSA

We have tested successfully OPENssh with RSA & PAM, now we have to implement this in all of our environment. In order to do this we want to integrate all the OPEN ssh packages and RSA software into one package and then just do a pkgadd of the created package and it should take care of everthing. My... (1 Reply)
Discussion started by: vishal999
1 Replies
Login or Register to Ask a Question