Trouble logging in with username and password

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Trouble logging in with username and password
# 1  
Old 01-10-2010
Trouble logging in with username and password

I have a RHEL 5 server that I can log into with an LDAP account hosted on a server running Sun DSEE 6.3 with an ssh key pair but not with my username and password. When I try to login to the console I am given the "login incorrect" message as if I fat fingered my password. Other users with identical account configurations can log in with no problem. Any ideas?
# 2  
Old 01-10-2010
If you have an SSH key pair then the SSH login does not need your password for SSHing to your server so your password could be incorrect or your password expired or your account locked out on the LDAP server. I suggest you get your password reset on the LDAP server and ensure the account isn't locked.
# 3  
Old 01-10-2010
My password is correct, current, and not locked because I can log into any other machine on the network using the LDAP account with no problem. I even double checked the LDAP account via DSCC. The machine is having the same problem with an account on its local passwd and shadow files and I changed the password the other day. I checked the shadow file and the local wasn't locked or expired either.

I am at a loss at this point.
# 4  
Old 01-10-2010
Some ideas:
Do your local and LDAP accounts have the same username? (Not a good idea from a fault finding point of view).
If the usernames are the same do you set the passwords to be the same?
In what order are files and ldap in /etc/nsswitch.conf file's passwd line and is it the same on your other machines?
Are the settings in pam.conf and ldap.conf the same on this machine as the other ones?
Is your account set to use an allowed shell as defined in /etc/shells?

I agree it is odd when others can log on okay?
# 5  
Old 01-10-2010
I don't have access to the machine from home so I will answer what I can. The local and LDAP accounts have different usernames. I know passwd is set to compat but Im not sure about the files/ldap order. I know it is connecting to the directory server because it resolves uids from it for file permissions. I am using the same client profile on other machines (Solaris) as well without any problems. I'm not sure about /etc/shells, but my login shell is bash. I am fairly sure (not 100%) that my co-worker that can use his LDAP account is also using bash.
# 6  
Old 01-14-2010
Thanks Tony Fuller. I figured it out. One of the PAM files was configured to use pam_tally so the machine had a local lockout mechanism I wasn't aware of.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Steps after username and password is entered !

Hi, I know this sounds crazy question.. but I am just curious to know what happens next when I enter username and password and hit enter on a new Unix session (using Putty)? I mean which file gets executed, how the default login shell is determined etc... regards juzz4fun (5 Replies)
Discussion started by: juzz4fun
5 Replies

2. Solaris

Trouble logging in

We had a requirement to upgrade to Solaris 10 update 10. This was done to impose new password restrictions. So if I am logged into a machine with the new Solaris, the shadow file looks like this: user:BnkEzDH.TQR2c:15734:7:60::35:: If I change the password: ... (3 Replies)
Discussion started by: brownwrap
3 Replies

3. Shell Programming and Scripting

Logging in with Username/Password on one line

Hello, I am currently working on a project that requires me to remote login into another UNIX system using different credentials. The problem is that progamatically I cannot simply feed the password into the UNIX system. Is there a way to feed the password within one command line statement. I... (1 Reply)
Discussion started by: myoung88
1 Replies

4. UNIX for Dummies Questions & Answers

How do you reset username/password

Picked up a 3b2 running System V. Works fine, but it requires a username and password. Is the username "root" or "sysadm"? How do I find out and how to I reset it or bypass it? Thanks. (2 Replies)
Discussion started by: TanRuNomad
2 Replies

5. Shell Programming and Scripting

Username and password

Hi I am new to using unix and am struggling with a script i am writing. What i am trying to do is get a user to enter a username, check the original file i created with username and pin to see if their is a corresponding entry. Next ask the user to enter the pin and see if this matches... (5 Replies)
Discussion started by: somersetdan
5 Replies

6. UNIX for Advanced & Expert Users

Login through SFTP using username and password

Hi All, I want to login to a server through SFTP by giving username and password, in an automated script. I know that this can be done through public key authentication, but my requirement is to login ONLY through username and password. I am using GNU/Linux server. Please advise me !!!... (4 Replies)
Discussion started by: sparks
4 Replies

7. UNIX for Dummies Questions & Answers

How can i hide username/password

hi all, i run sqlplus command on unix(HP-UX) like "sqlplus username/password@serverA @deneme.sql" but when someone run "ps -ef | grep sqlplus", it can see my username and password :( How can i hide username and password. thanx. (1 Reply)
Discussion started by: temhem
1 Replies

8. Post Here to Contact Site Administrators and Moderators

Having a bit of trouble logging in.

It allowed me on, to change my password, but when I log out and log back in, it complains that it can't display the webpage. This happens in both Firefox and IE. I am puzzled. (5 Replies)
Discussion started by: billshaw
5 Replies

9. UNIX for Dummies Questions & Answers

FTP Download username and password

I am trying to download from ftp server (rsync and postfix). But every time I connect to the ftp server, it prompts for USER and PASS but I don't know which username and and password to use. And I am using command based UNIX OS. (2 Replies)
Discussion started by: kumarrana
2 Replies

10. Shell Programming and Scripting

username password in script

Can we write a script to telnet to a unix server from unix with the username and password hardcoded in the script?? something like ssh a@b -p password ??? (5 Replies)
Discussion started by: roshanjain2
5 Replies
Login or Register to Ask a Question