Authentication Failed Dialog Box on Redhat 4.7

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Authentication Failed Dialog Box on Redhat 4.7
# 1  
Old 03-22-2012
Authentication Failed Dialog Box on Redhat 4.7

For some reason i cannot login using root or other accounts on my Linux system.

When logging in at the main console it says "Authentication failed" in a dialog box with an OK button.
The Linux system is Redhat 4.7.

I've already checked /etc/pam.d/login, /etc/security/access.conf and /etc/securetty files but everything is correct. I have already checked if /etc/nologin file exists.

I have accessed the files mentioned above using rescue mode.

Can anyone help me for this?
# 2  
Old 03-22-2012
What does /var/log/secure say? What about /var/log/messages? They should give you a clue. Also, please do an "ls -l" on /bin/login and check if the permissions to that has been altered. It should have root:root ownership with 755 permission. Also, did you check if permissions on /etc/passwd and /etc/shadow are intact? Or even if the files exist?
# 3  
Old 03-22-2012
Both files (/var/log/secure, /var/log/messages) have the information about the last time I was able to login successfully.

Also /bin/login has 755 permission, /etc/passwd has 644 permission and /etc/shadow has 600 permission.
# 4  
Old 03-22-2012
Quote:
Both files (/var/log/secure, /var/log/messages) have the information about the last time I was able to login successfully.
This means PAM is not logging the login attempts (either successful or unsuccessful, it's supposed to log them) in /var/log/secure, which leads me to suspect that PAM is not doing what it's supposed to do.

Do you remember doing any changes that could affect PAM modules?
# 5  
Old 03-22-2012
No I have not done or installed anything on the system that will affect PAM module.

My pam.d/login file contents are

#%PAM-1.0
auth required pam_securetty.so
auth required pam_stack.so service=system-auth
auth required pam_nologin.so
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session required pam_stack.so service=system-auth
session required pam_loginuid.so
session optional pam_console.so
# pam_selinux.so open should be the last session rule
# session required pam_selinux.so open
session required /lib/security/pam_limits.so
session sufficient /lib/security/pam_lsass.so
session required pam_selinux.so open
# 6  
Old 03-22-2012
Okay, could you execute "authconfig-tui" and make sure local user authentication is enabled? Also check /etc/nsswitch.conf after this. "files" should be the first option for passwd, shadow, and group in there.

I think somehow, PAM is not being used at all for authentication.
# 7  
Old 03-22-2012
authconfig-tui command gave me an error saying command not found.

/etc/nsswitch.conf file first few lines are:

;passwd: files winbind
passwd files lsass
shadow files
group files lsass
;group: files winbind
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Require input in bash dialog box

Hello. Any help would be greatly appreciated. Right now I have the following input box that works fine and well, however I would like to wrap this is a loop that requires input. Right now the script will happily continue on if the user just hits enter. I'd like to require a minimum of a 5... (5 Replies)
Discussion started by: woodson2
5 Replies

2. Red Hat

How to access redhat Linux box graphically from windows box?

Hi I have a linux box and need to access from windows graphically # uname -a Linux pc-l416116 2.6.18-155.el5 #1 SMP Fri Jun 19 17:06:47 EDT 2009 i686 i686 i386 GNU/Linux What components do I need to install on Linux and windows to do that? TIA (6 Replies)
Discussion started by: magnus29
6 Replies

3. Shell Programming and Scripting

Dialog box in korn shell scripting

Does dialog box works on all kind of shells? I am using korn shell in Linux . For me dialog is not working :) is there any particular syntax or do we need to have particular OS version or shell env? #!/bin/ksh dialog --title "create file" \ --backtitle "shell script practice" \... (1 Reply)
Discussion started by: NarayanaPrakash
1 Replies

4. UNIX for Dummies Questions & Answers

Dialog box

I know, I can run dialog command in my machine. But what I want to do is I wanna show the dialog box to some other Remote host. I connected to the remote system and used dialog command its shows the box in my terminal only. How can I display to that remote machine?? Any suggestions??? (3 Replies)
Discussion started by: Adhi
3 Replies

5. Shell Programming and Scripting

How to create multiple input box in same window using dialog

Hi All, I was trying to generate GUI using shell script. After long search I found the utility called “dialog”. Using this utility I am able to generate window to collect the input. dialog --inputbox "Input 1" 10 45 dialog --inputbox "Input 2" 10 45 dialog --inputbox "Input 3" 10 45 Using... (2 Replies)
Discussion started by: kalpeer
2 Replies

6. Shell Programming and Scripting

Script to display a dialog box every 5 seconds

I want to create a script that displays a dialog box every interval of time and exits that loop when a user presses ENTER Any idies? (4 Replies)
Discussion started by: amitlib
4 Replies

7. Debian

Dialog box in debconf file.

Hi all, I am working with debconf file for packaging the projects. I have used the ". /usr/share/debconf/confmodule" file to do the packaging in debian standard. It worked fine. When ever I am installing the package in apt-get the dialogs are come as I mentioned in the templates file.... (0 Replies)
Discussion started by: Nila
0 Replies

8. Red Hat

Authentication failed !

Hey since this morning I(nonrrot user) am not able to log into my system with my username. I am using redhat linux kernel release 2.6.9-5.ELsmp. I aslo found the folowing output for chkconfig command: # chkconfig --list|grep ldap ldap 0: off 1: off 2: off 3: off 4: off 5: off... (5 Replies)
Discussion started by: ashok.g
5 Replies

9. Shell Programming and Scripting

Pop up dialog box on remote computers

I need to send out messages to over 100 clients in my sector. I want it to pop up a dialog box letting them know to save work and log out. I have the reboot script created just need the warning please. Thanks (35 Replies)
Discussion started by: deaconf19
35 Replies

10. Shell Programming and Scripting

Displaying a dialog box using terminal commands

Hello, I used the command osascript -e 'tell app "Finder" to display dialog "Hey!"' to display a dialog box..it works fine, it displays a dialog box with 'OK' and 'CANCEL' buttons..i want to get the button returned value how can i do that using terminal command? is there any command to get... (1 Reply)
Discussion started by: keshav.murthy@r
1 Replies
Login or Register to Ask a Question