hasan koduru
asked on
linux machine login issue
why iam not able to login through console while enter the user name it is not asking for password, please help me out
loginerror1.jpg
loginerror1.jpg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You already accepted a solution, but ok :)
First check the ssh file with
Check if this line "PasswordAuthentication" is set to yes:
Also check the logs, eg. /var/log/syslog or /var/log/messages for errors.
First check the ssh file with
cat /etc/ssh/sshd_config
Check if this line "PasswordAuthentication" is set to yes:
PasswordAuthentication yes
Also check the logs, eg. /var/log/syslog or /var/log/messages for errors.
ASKER
please find attached screen shot of /var/log/messeges. and help me out how to notify the error
messeges-log.jpg
messeges-log2.jpg
messeges-log.jpg
messeges-log2.jpg
Sorry, those logs don't help pinpoint the login issue ... Did you check the sshd_config file?
do following if you want to change something:
press "i" for making changes.
When done, press "esc" and type "wq" followed by enter.
Did you try the other suggestions?
do following if you want to change something:
vi /etc/ssh/sshd_config
press "i" for making changes.
When done, press "esc" and type "wq" followed by enter.
Did you try the other suggestions?
ASKER
yes, i tried which you suggested all, then forwarded log files, do the needful help for loging
Well, if you're still in single mode check a few things like diskspace for example.
permissions on /etc/shadow
The logs didn't give any helpful info.
df -h
permissions on /etc/shadow
ls -la /etc/shadow
The logs didn't give any helpful info.
ASKER
i hope this attached log can help out. please check and do the help
messeges-log3.jpg
messeges-log3.jpg
ASKER
Please find attached df -h and ls -la /etc/shadow file file
messeges-log4.jpg
messeges-log4.jpg
I see a few issues that might explain this:
1- You seem to have LDAP authentication enabled
2- SSH is listening on 0.0.0.0, which indicates no network is set or started.
This combination will most likely cause the problem you're having.
In single user mode check /etc/sysconfig/network-scr ipts/ifcfg -eth0 (<--- replace eth0 with the name of your nic).
1- You seem to have LDAP authentication enabled
2- SSH is listening on 0.0.0.0, which indicates no network is set or started.
This combination will most likely cause the problem you're having.
In single user mode check /etc/sysconfig/network-scr
ASKER
than help me how to resolve this issue
In single user mode check /etc/sysconfig/network-scripts/ifcfg -eth0 (<--- replace eth0 with the name of your nic).
Begin with what I requested above ... We need to check the settings of the network.
More info
ASKER
Try this command:
Execute it in single mode and reboot if it was succesfully executed.
authconfig --disableldapauth --disableldap --enableshadow
Execute it in single mode and reboot if it was succesfully executed.
ASKER
yeah i got it with authconfig --disableldapauth --disableldap --enableshadow --updateall
thank you very much for all your support.
Regards,
Hasan K
thank you very much for all your support.
Regards,
Hasan K
Great, no problem
now the same having problem to communicating with DNS, please find below error messege
Aug 19 03:39:00 ncptmaxqa ntpdate[29027]: can't find host 1.rhel.pool.ntp.org
Aug 19 03:39:40 ncptmaxqa ntpdate[29027]: can't find host 2.rhel.pool.ntp.org
Aug 19 03:39:44 ncptmaxqa ntpdate[29027]: no server suitable for synchronization found
Aug 19 03:39:44 ncptmaxqa ntpd[29151]: ntpd 4.2.2p1@1.1570-o Mon May 30 15:43:16 UTC 2011 (1)
Aug 19 03:39:44 ncptmaxqa ntpd[29152]: precision = 1.000 usec
Aug 19 03:39:44 ncptmaxqa ntpd[29152]: Listening on interface wildcard, 0.0.0.0#123 Disabled
Aug 19 03:39:44 ncptmaxqa ntpd[29152]: Listening on interface lo, 127.0.0.1#123 Enabled
Aug 19 03:39:44 ncptmaxqa ntpd[29152]: Listening on interface eth0, 192.168.7.232#123 Enabled
Aug 19 03:39:44 ncptmaxqa ntpd[29152]: kernel time sync status 0040
Aug 19 03:39:44 ncptmaxqa ntpd[29152]: getaddrinfo: "::1" invalid host address, ignored
Aug 19 03:41:44 ncptmaxqa ntpd[29152]: frequency initialized 46.235 PPM from /var/lib/ntp/drift
Aug 19 03:42:24 ncptmaxqa ntpd[29152]: getaddrinfo: "0.rhel.pool.ntp.org" invalid host address, ignored
Aug 19 03:43:04 ncptmaxqa ntpd[29152]: getaddrinfo: "1.rhel.pool.ntp.org" invalid host address, ignored
Aug 19 06:15:40 ncptmaxqa ntpd[29152]: getaddrinfo: "2.rhel.pool.ntp.org" invalid host address, ignored
Aug 19 06:16:22 ncptmaxqa ntpd_initres[29354]: host name not found: 0.rhel.pool.ntp.org
Aug 19 06:16:22 ncptmaxqa ntpd_initres[29354]: couldn't resolve `0.rhel.pool.ntp.org', giving up on it
Aug 19 06:17:02 ncptmaxqa ntpd_initres[29354]: host name not found: 1.rhel.pool.ntp.org
Aug 19 06:17:02 ncptmaxqa ntpd_initres[29354]: couldn't resolve `1.rhel.pool.ntp.org', giving up on it
Aug 19 06:17:42 ncptmaxqa ntpd_initres[29354]: host name not found: 2.rhel.pool.ntp.org
Aug 19 06:17:42 ncptmaxqa ntpd_initres[29354]: couldn't resolve `2.rhel.pool.ntp.org', giving up on it
Aug 19 06:18:52 ncptmaxqa ntpd[29152]: synchronized to LOCAL(0), stratum 10
Aug 19 06:18:52 ncptmaxqa ntpd[29152]: kernel time sync disabled 0001
Aug 19 07:01:38 ncptmaxqa avahi-daemon[3913]: Withdrawing address record for 192.168.7.232 on eth0.
Aug 19 07:01:38 ncptmaxqa avahi-daemon[3913]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.7.232.
Aug 19 07:01:38 ncptmaxqa avahi-daemon[3913]: iface.c: interface_mdns_mcast_join( ) called but no local address available.
Aug 19 07:01:38 ncptmaxqa avahi-daemon[3913]: Interface eth0.IPv4 no longer relevant for mDNS.
Aug 19 07:01:38 ncptmaxqa kernel: e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Aug 19 07:01:38 ncptmaxqa kernel: 8021q: adding VLAN 0 to HW filter on device eth0
Aug 19 07:01:39 ncptmaxqa avahi-daemon[3913]: New relevant interface eth0.IPv4 for mDNS.
Aug 19 07:01:39 ncptmaxqa avahi-daemon[3913]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.7.232.
Aug 19 07:01:39 ncptmaxqa avahi-daemon[3913]: Registering new address record for 192.168.7.232 on eth0.
Aug 20 03:34:44 ncptmaxqa avahi-daemon[3913]: Withdrawing address record for 192.168.7.232 on eth0.
Aug 20 03:34:44 ncptmaxqa avahi-daemon[3913]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.7.232.
Aug 20 03:34:44 ncptmaxqa avahi-daemon[3913]: iface.c: interface_mdns_mcast_join( ) called but no local address available.
Aug 20 03:34:44 ncptmaxqa avahi-daemon[3913]: Interface eth0.IPv4 no longer relevant for mDNS.
Aug 20 03:34:45 ncptmaxqa kernel: e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Aug 20 03:34:45 ncptmaxqa kernel: 8021q: adding VLAN 0 to HW filter on device eth0
Aug 20 03:34:49 ncptmaxqa avahi-daemon[3913]: New relevant interface eth0.IPv4 for mDNS.
Aug 20 03:34:49 ncptmaxqa avahi-daemon[3913]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.7.232.
Aug 20 03:34:49 ncptmaxqa avahi-daemon[3913]: Registering new address record for 192.168.7.232 on eth0.
Aug 20 03:45:22 ncptmaxqa avahi-daemon[3913]: Withdrawing address record for 192.168.7.232 on eth0.
Aug 20 03:45:22 ncptmaxqa avahi-daemon[3913]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.7.232.
Aug 20 03:45:22 ncptmaxqa avahi-daemon[3913]: iface.c: interface_mdns_mcast_join( ) called but no local address available.
Aug 20 03:45:22 ncptmaxqa avahi-daemon[3913]: Interface eth0.IPv4 no longer relevant for mDNS.
Aug 20 03:45:23 ncptmaxqa kernel: e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Aug 20 03:45:23 ncptmaxqa kernel: 8021q: adding VLAN 0 to HW filter on device eth0
Aug 20 03:45:24 ncptmaxqa avahi-daemon[3913]: New relevant interface eth0.IPv4 for mDNS.
Aug 20 03:45:24 ncptmaxqa avahi-daemon[3913]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.7.232.
Aug 20 03:45:24 ncptmaxqa avahi-daemon[3913]: Registering new address record for 192.168.7.232 on eth0.
Aug 20 05:14:03 ncptmaxqa ntpdate[15407]: can't find host 0.rhel.pool.ntp.org
Regards,
Hasan K
Aug 19 03:39:00 ncptmaxqa ntpdate[29027]: can't find host 1.rhel.pool.ntp.org
Aug 19 03:39:40 ncptmaxqa ntpdate[29027]: can't find host 2.rhel.pool.ntp.org
Aug 19 03:39:44 ncptmaxqa ntpdate[29027]: no server suitable for synchronization found
Aug 19 03:39:44 ncptmaxqa ntpd[29151]: ntpd 4.2.2p1@1.1570-o Mon May 30 15:43:16 UTC 2011 (1)
Aug 19 03:39:44 ncptmaxqa ntpd[29152]: precision = 1.000 usec
Aug 19 03:39:44 ncptmaxqa ntpd[29152]: Listening on interface wildcard, 0.0.0.0#123 Disabled
Aug 19 03:39:44 ncptmaxqa ntpd[29152]: Listening on interface lo, 127.0.0.1#123 Enabled
Aug 19 03:39:44 ncptmaxqa ntpd[29152]: Listening on interface eth0, 192.168.7.232#123 Enabled
Aug 19 03:39:44 ncptmaxqa ntpd[29152]: kernel time sync status 0040
Aug 19 03:39:44 ncptmaxqa ntpd[29152]: getaddrinfo: "::1" invalid host address, ignored
Aug 19 03:41:44 ncptmaxqa ntpd[29152]: frequency initialized 46.235 PPM from /var/lib/ntp/drift
Aug 19 03:42:24 ncptmaxqa ntpd[29152]: getaddrinfo: "0.rhel.pool.ntp.org" invalid host address, ignored
Aug 19 03:43:04 ncptmaxqa ntpd[29152]: getaddrinfo: "1.rhel.pool.ntp.org" invalid host address, ignored
Aug 19 06:15:40 ncptmaxqa ntpd[29152]: getaddrinfo: "2.rhel.pool.ntp.org" invalid host address, ignored
Aug 19 06:16:22 ncptmaxqa ntpd_initres[29354]: host name not found: 0.rhel.pool.ntp.org
Aug 19 06:16:22 ncptmaxqa ntpd_initres[29354]: couldn't resolve `0.rhel.pool.ntp.org', giving up on it
Aug 19 06:17:02 ncptmaxqa ntpd_initres[29354]: host name not found: 1.rhel.pool.ntp.org
Aug 19 06:17:02 ncptmaxqa ntpd_initres[29354]: couldn't resolve `1.rhel.pool.ntp.org', giving up on it
Aug 19 06:17:42 ncptmaxqa ntpd_initres[29354]: host name not found: 2.rhel.pool.ntp.org
Aug 19 06:17:42 ncptmaxqa ntpd_initres[29354]: couldn't resolve `2.rhel.pool.ntp.org', giving up on it
Aug 19 06:18:52 ncptmaxqa ntpd[29152]: synchronized to LOCAL(0), stratum 10
Aug 19 06:18:52 ncptmaxqa ntpd[29152]: kernel time sync disabled 0001
Aug 19 07:01:38 ncptmaxqa avahi-daemon[3913]: Withdrawing address record for 192.168.7.232 on eth0.
Aug 19 07:01:38 ncptmaxqa avahi-daemon[3913]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.7.232.
Aug 19 07:01:38 ncptmaxqa avahi-daemon[3913]: iface.c: interface_mdns_mcast_join(
Aug 19 07:01:38 ncptmaxqa avahi-daemon[3913]: Interface eth0.IPv4 no longer relevant for mDNS.
Aug 19 07:01:38 ncptmaxqa kernel: e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Aug 19 07:01:38 ncptmaxqa kernel: 8021q: adding VLAN 0 to HW filter on device eth0
Aug 19 07:01:39 ncptmaxqa avahi-daemon[3913]: New relevant interface eth0.IPv4 for mDNS.
Aug 19 07:01:39 ncptmaxqa avahi-daemon[3913]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.7.232.
Aug 19 07:01:39 ncptmaxqa avahi-daemon[3913]: Registering new address record for 192.168.7.232 on eth0.
Aug 20 03:34:44 ncptmaxqa avahi-daemon[3913]: Withdrawing address record for 192.168.7.232 on eth0.
Aug 20 03:34:44 ncptmaxqa avahi-daemon[3913]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.7.232.
Aug 20 03:34:44 ncptmaxqa avahi-daemon[3913]: iface.c: interface_mdns_mcast_join(
Aug 20 03:34:44 ncptmaxqa avahi-daemon[3913]: Interface eth0.IPv4 no longer relevant for mDNS.
Aug 20 03:34:45 ncptmaxqa kernel: e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Aug 20 03:34:45 ncptmaxqa kernel: 8021q: adding VLAN 0 to HW filter on device eth0
Aug 20 03:34:49 ncptmaxqa avahi-daemon[3913]: New relevant interface eth0.IPv4 for mDNS.
Aug 20 03:34:49 ncptmaxqa avahi-daemon[3913]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.7.232.
Aug 20 03:34:49 ncptmaxqa avahi-daemon[3913]: Registering new address record for 192.168.7.232 on eth0.
Aug 20 03:45:22 ncptmaxqa avahi-daemon[3913]: Withdrawing address record for 192.168.7.232 on eth0.
Aug 20 03:45:22 ncptmaxqa avahi-daemon[3913]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.7.232.
Aug 20 03:45:22 ncptmaxqa avahi-daemon[3913]: iface.c: interface_mdns_mcast_join(
Aug 20 03:45:22 ncptmaxqa avahi-daemon[3913]: Interface eth0.IPv4 no longer relevant for mDNS.
Aug 20 03:45:23 ncptmaxqa kernel: e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Aug 20 03:45:23 ncptmaxqa kernel: 8021q: adding VLAN 0 to HW filter on device eth0
Aug 20 03:45:24 ncptmaxqa avahi-daemon[3913]: New relevant interface eth0.IPv4 for mDNS.
Aug 20 03:45:24 ncptmaxqa avahi-daemon[3913]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.7.232.
Aug 20 03:45:24 ncptmaxqa avahi-daemon[3913]: Registering new address record for 192.168.7.232 on eth0.
Aug 20 05:14:03 ncptmaxqa ntpdate[15407]: can't find host 0.rhel.pool.ntp.org
Regards,
Hasan K
Please find belowerror
[root@ncptmaxqa ~]# /sbin/ntpdate -u 192.168.15.250
20 Aug 05:18:13 ntpdate[15652]: no server suitable for synchronization found
[root@ncptmaxqa ~]# nmap 192.168.15.250
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2015-08-20 05:30 EDT
Note: Host seems down. If it is really up, but blocking our ping probes, try -P0
Nmap finished: 1 IP address (0 hosts up) scanned in 2.065 seconds
[root@ncptmaxqa ~]# nslookup 192.168.15.250
;; connection timed out; no servers could be reached
[root@ncptmaxqa ~]# nslookup 192.168.15.250
;; connection timed out; no servers could be reached
[root@ncptmaxqa ~]# cat /etc/resolv.conf
search ksoftglobal.com
nameserver 192.168.15.250
nameserver 8.8.8.8
[root@ncptmaxqa ~]#
[root@ncptmaxqa ~]# /sbin/ntpdate -u 192.168.15.250
20 Aug 05:18:13 ntpdate[15652]: no server suitable for synchronization found
[root@ncptmaxqa ~]# nmap 192.168.15.250
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2015-08-20 05:30 EDT
Note: Host seems down. If it is really up, but blocking our ping probes, try -P0
Nmap finished: 1 IP address (0 hosts up) scanned in 2.065 seconds
[root@ncptmaxqa ~]# nslookup 192.168.15.250
;; connection timed out; no servers could be reached
[root@ncptmaxqa ~]# nslookup 192.168.15.250
;; connection timed out; no servers could be reached
[root@ncptmaxqa ~]# cat /etc/resolv.conf
search ksoftglobal.com
nameserver 192.168.15.250
nameserver 8.8.8.8
[root@ncptmaxqa ~]#
ASKER