LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 09-26-2014, 12:36 AM   #1
onkar_nimje
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Rep: Reputation: Disabled
Not able to login centos 6.5 Because of LOGIN IN LOOP problem


I have centos6.5 VM on vmware server. Now i cloned it using vmware converter. It is cloned fine and created new VM using this. It booted also correctly BUT now facing problem like "When i enter my credentials to login to machine its showing me blank screen and again same login window comes". I searched on google but not found exact issue.
Please suggest me any solution.

Last edited by onkar_nimje; 09-26-2014 at 08:06 AM.
 
Old 09-26-2014, 11:13 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Hi Onkar
It doesn't say it fails, it just rolls to the next iteration? It almost sounds like a bad /etc/shadow.
Are you accessing it through the VMWare console or ssh'ing into it?
 
Old 09-27-2014, 06:28 AM   #3
onkar_nimje
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
1)I trying to access through SSH it BUT after giving user name and password it again asking me same thing username and password.. and its continuing iterating

2) when i access through VMware client UI, then after giving user name and password in UI it again asking me same thing username and password.. and its continuing iterating.
 
Old 09-27-2014, 06:40 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Boot the machine in runlevel 1 (Live CD or command line kernel option), log in as root and inspect the system logs?
 
Old 09-27-2014, 08:53 AM   #5
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
I'd check the /etc/shadow file to make sure it's not corrupt. Try a "cat /etc/shadow" and see what you get.
 
Old 09-27-2014, 02:05 PM   #6
onkar_nimje
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
I checked the log file. There are some error regarding files are missing.
I have two file
Xorg.0.log & Xorg.9.log


IN XORG.0.LOG I HAVE FOUND TWO ERROR
[ 213.356] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 213.356] (II) FBDEV: driver for framebuffer: fbdev
[ 213.356] (--) using VT number 7

[ 213.358] (WW) Falling back to old probe method for vesa
[ 213.358] (WW) Falling back to old probe method for modesetting
[ 213.358] (EE) open /dev/dri/card0: No such file or directory
[ 213.358] (WW) Falling back to old probe method for fbdev
[ 213.358] (II) Loading sub module "fbdevhw"
[ 213.358] (II) LoadModule: "fbdevhw"
[ 213.358] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
[ 213.358] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 213.358] compiled for 1.13.0, module version = 0.0.2
[ 213.358] ABI class: X.Org Video Driver, version 13.1
[ 213.364] (EE) open /dev/fb0: No such device
[ 213.365] (II) vmware(0): Driver was compiled without KMS- and 3D support.
[ 213.365] (WW) vmware(0): Disabling 3D support.
[ 213.365] (WW) vmware(0): Disabling Render Acceleration.
[ 213.365] (WW) vmware(0): Disabling RandR12+ support.
[ 213.365] (--) vmware(0): VMware SVGA regs at (0x10d0, 0x10d1)


IN XORG.9.LOG FOUND THREE ERROR
[ 29.167] (II) UnloadModule: "vmwgfx"
[ 29.167] (II) Unloading vmwgfx
[ 29.167] (EE) Failed to load module "vmwgfx" (module does not exist, 0)
[ 29.167] (EE) vmware: Please ignore the above warnings about not being able to to load module/driver vmwgfx
[ 29.167] (II) vmware: Using vmwlegacy driver everything is fine.

[ 29.200] compiled for 1.10.4, module version = 0.0.2
[ 29.200] ABI class: X.Org Video Driver, version 10.0
[ 29.220] (EE) open /dev/fb0: No such device
[ 29.220] (--) vmwlegacy(0): VMware SVGA regs at (0x10d0, 0x10d1)
[ 29.220] (II) Loading sub module "vgahw"
[ 29.220] (II) LoadModule: "vgahw"



1)BUT I CHECKED THIS FILE ([ 213.358] (EE) open /dev/dri/card0: No such file or directory) IN ORIGINAL VM MACHINE .
AND THIS FILE ALSO NOT PRESENT IN ORGINAL MACHINE
2) /dev/fb0 is also present correctly
3) I checked the cat /etc/shadow command But it also giving same response as original VM.


How can we say that /etc/shadow is corrupt?
 
Old 09-27-2014, 02:13 PM   #7
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
How can we say that /etc/shadow is corrupt?
You can just "cat" it from the command line. Open a terminal, make sure you are the root user and type "cat /etc/shadow" and post what that command returns
 
Old 09-27-2014, 03:01 PM   #8
onkar_nimje
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
But what can u do with that file since if i gave wrong password then its shows me message of wrong password AND if i give right password then its gives me login windows again. It means password is correct. Is m right?
 
Old 09-27-2014, 05:17 PM   #9
onkar_nimje
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
shadow.txt removed at request of mod


This is output of cat /etc/shadow
 
Old 09-27-2014, 05:44 PM   #10
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Etc/shadow looks OK.
Is this a single user on the machine having the issue or every user?
 
Old 09-28-2014, 02:14 AM   #11
onkar_nimje
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
this is problem with every user.
Did you checked my logs (in last post). It has something driver problem also. Is it related?
 
Old 09-28-2014, 04:39 AM   #12
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Yeah, you're looking at the Xorg log. Xorg has to do with display functionality, It probably can mess up logins ( especially if you use a GUI login screen as opposed to a terminal logins) but your description of your problem doesn't really match up with that, at least as far as I can see.
Can you break out of the gui ( generally ctrl+alt+backspace) and log in successfully directly from the terminal?
The other thing is...
What Distro are you using, we're going to need to check some log files and I want to make sure I'm pointing you to the right locations in your file system.
Back on this evening.
 
Old 09-28-2014, 05:51 AM   #13
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
NO!

Quote:
Originally Posted by dijetlo View Post
I'd check the /etc/shadow file to make sure it's not corrupt. Try a "cat /etc/shadow" and see what you get.
I seriously question your practice of asking a fellow LQ member to 'cat' /etc/shadow.
Doing that (even though every LQ member is responsible for her / his own actions) IMNSHO constitutes an unacceptable risk.
Do not ever do that again.


*If you really think this has to do with "bad /etc/shadow" then you should have looked at system log files for clues first, then at tools like 'pwck' and then work your way though ownership, access perms and other attributes and integrity verification. If you don't know 'pwck' that's really inexcusable.
 
Old 10-02-2014, 09:19 AM   #14
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
If you don't know 'pwck' that's really inexcusable.
I don't recall asking for an excuse....

Quote:
I seriously question your practice of asking a fellow LQ member to 'cat' /etc/shadow.
[shrug]
 
Old 02-23-2015, 07:02 AM   #15
onkar_nimje
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
This is what i got from command cat /etc/shadow


[IMG]D:\BB-Testing\ScreenShots[/IMG]
Attached Thumbnails
Click image for larger version

Name:	loginLOOP.jpg
Views:	924
Size:	229.4 KB
ID:	17644  
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SSH login problem for additional users after password-less login setup uncle-c Linux - Newbie 3 02-10-2010 12:51 PM
SSH Problem - Can't login using Hostname, can login using ip address jqweezy Linux - Networking 7 01-26-2009 02:21 PM
login loop flinix Linux - Newbie 2 08-08-2006 12:16 PM
Login Shell Loop adamis Linux - General 6 07-29-2006 02:28 AM
login loop ixefs Linux - General 4 12-24-2003 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration