Authentication Failed

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Authentication Failed
# 1  
Old 04-17-2012
Authentication Failed

Hi everyone ...

( Linux Cent OS ) i cant login as root user in my lab machine ... i did give correct root and root passwd ..but it showing Authentication Failed ...

plz help me

Last edited by coolboys; 04-17-2012 at 02:34 PM.. Reason: h
# 2  
Old 04-17-2012
Boot the machine in maintenance mode by appending below in the grub entry for the kernel parameters
Code:
init=/bin/sh

Mount the root filesystem as r+w (if /etc is a different filesystem, you need to mount it r+w too)
Code:
mount -o remount,rw /

Run the passwd command and reset root's password
Code:
/usr/bin/passwd

Reboot the machine and check
Code:
reboot

This is just the preliminary troubleshooting step. If this does not work, need to check if other users (except root) are getting the same error message or not, which might tell us if it's a PAM issue. Also, you could look into /var/log/secure file to see what exactly is getting denied.
# 3  
Old 04-18-2012
hi Admin ..

i tried what you said .. no luck ....still saying Authentication Failed
and i also i check /var/log/secure it saying following ..
Code:
pam_unix(login:session):session opened for user root by (uid=0)
Permission Denied
pam_unix(login:auth):authentication failure: logname=LOGIN uid=0 euid=0 tty=tty1 ruser= rhost= user=root


plz how to fix ..step by step..

Moderator's Comments:
Mod Comment Code tags for code, please.

Last edited by Corona688; 04-18-2012 at 02:29 PM..
# 4  
Old 04-18-2012
Is SELinux enabled? If so, can you check if any related AVC denials in /var/log/audit/audit.log ?

And on top of all, do you remember anything you did that could break PAM authentication? Does the same happen when trying to log in as a different user?
# 5  
Old 04-19-2012
i newbie on linux ....
SElinux is Disabled ....
i dont disturb any PAM authentication

help me .. how to resolve and login as root and other
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

User authentication failed while log in Solaris 8 client on Linux NIS server.

Based on the NIS migration tests I did and another question I posted earlier on. https://www.unix.com/solaris/272021-solaris-8-md5-encryption-support.html I tried to downgrade NIS linux encryption to DES to support solaris connection. So I modified /etc/pam.d/system-auth as below, password... (0 Replies)
Discussion started by: bestard
0 Replies

2. SuSE

Authentication with PAM

Hello all, I recently updated PAM policy files (pam_authz.policy) on HP-UX Servers with AD groups involving allowing and denying the certain groups.. Could anyone tell me what is the equivalent mechanism in SLES(Linux)? Is it possible to allow/deny AD group access with the SLES LDAP... (0 Replies)
Discussion started by: lcclaj0
0 Replies

3. UNIX for Dummies Questions & Answers

Sendemail Error - Authentication... failed

SCO Unix OpenServer v6. We use the script below for sending mass emails with attachments. sendemail -f $From_user -o message-file=/u/fg4/data/EmailDefaultBody.html -u $su bj -s $MAIL_SRVR -xu $MAIL_USER -xp $MAIL_PSWD -a $emlname.pdf -t $MAILTO MAIL_SVR=SMPTOUT.SECURESERVER.NET ... (0 Replies)
Discussion started by: jet47
0 Replies

4. Solaris

Rpcinfo: can't contact portmapper: RPC: Authentication error; why = Failed (unspecified error)

I have two servers with a fresh install of Solaris 11, and having problems when doing rpcinfo between them. There is no firewall involved, so everything should theoretically be getting through. Does anyone have any ideas? I did a lot of Google searches, and haven't found a working solution yet. ... (2 Replies)
Discussion started by: christr
2 Replies

5. Red Hat

Red Hat Cluster Luci Authentication Failed

Hello everyone, I'm setting up a cluster with 2 nodes using Red Hat enterprise 6.2 x86_64, 1 luci and 1 ricci for education purpose. Ricci is installed and already running and luci is installed and running but at the time of add and create the cluster through the web gui it give me a error... (1 Reply)
Discussion started by: typeav
1 Replies

6. Red Hat

Authentication Failed in Linux centos

Hi everyone ... ( Linux Cent OS ) i cant login as root user in my lab machine ... i did give correct root and root passwd ..but it showing Authentication Failed ... plz help me (0 Replies)
Discussion started by: coolboys
0 Replies

7. Red Hat

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 ... (27 Replies)
Discussion started by: redhatuser2012
27 Replies

8. Solaris

Cygwin X Server error: xdmcp fatal error session failed session 23 failed for display

Hi, i got the following error when i tried to access the cygwin x server from a windows XP PC. "xdmcp fatal error session failed session 23 failed for display" Alternatively, when i tried to access the same Cygwin X Server from another windows XP PC which is on a different LAN... (3 Replies)
Discussion started by: HarishKumarM
3 Replies

9. 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

10. AIX

SFTP Failed---Request for subsystem 'sftp' failed on channel 0

Hi, While I am trying SFTP my machine to another unix machine , it was working fine till 10 min back. But now i am getting the below error "Request for subsystem 'sftp' failed on channel 0" Could you please someone help me to solve or analyise the root cause... Cheers:b:, Mahiban (0 Replies)
Discussion started by: mahiban
0 Replies
Login or Register to Ask a Question