Fedora Linux Support Community & Resources Center
  #1  
Old 3rd June 2012, 04:37 AM
3strands Offline
Registered User
 
Join Date: Jun 2012
Location: Sydney, NSW, AU
Posts: 2
linuxfirefox
Can login with GDM, can't login to console

Guys, got a really strange problem here.

I've just installed a fresh Fedora 16 image, and on June 2nd at around 10:30am I ran a "yum upgrade" and let things take their course. I locked the screen and walked away. Came back and I couldn't unlock my screen - logging into the console also failed.

I tried doing a couple of checks, here are the symptoms:
1) Logging into the console fails for both root and my user. I have checked, the passwords are exaclty the same as before.
2) selinux was in enforcing targeted mode when I ran the update - I have moved to permissive, but still fails.
3) I can change grub to boot into single mode, and my root shell opens. I can set passwords here. However, this is where the interesting bit happens:

If I change the password of "user" to "passw0rd_5736!!_!" while in single mode, the command succeeds. If I then test it while in single-user mode but su - user, then try to "su - user", that same password fails.

If I su to "user" from the initial root prompt and run passwd and change the password, it succeeds until the final entry, where it gives a "passwd: Authentication token manipulation error" before returning - however the password in /etc/shadow does change.

Here's the really strange part. When I "init 5" and try to login with GDM, the login succeeds with the new password!

Sounds like a PAM problem, but I can't figure out how to troubleshoot it. As an FYI, the system is now in SELinux permissive, not enforcing, so SELinux shouldn't be causing the fault.
Reply With Quote
  #2  
Old 3rd June 2012, 02:14 PM
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,692
linuxfirefox
Re: Can login with GDM, can't login to console

Out of curiosity, does a simple su user -c whoami work, as you see, without the dash?

Let me rephrase your issue:
1) you re-booted into the installed OS
2) Updated 2012 june 2nd 10:30 am
3) When you came back, xscreensaver was active and you could not login?

4)Hard power off, boot into emergency mode
5) changed pw of user and root

In init 5 they work, but not in init 3?
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Guide: Windows 8+ & Fedora 20+ Dualboot
Repo (sea-devel) :: Text User Interface (TUI), Video Handler Script (VHS), efi-helper, grub2-circled-nasa-themes, Essentials (blame, p, rmtf, rnd, siggen, screenshot...), (BETA) Dev-Scripts, (BETA) Fedora Account Scripts (FAS)
Reply With Quote
  #3  
Old 3rd June 2012, 03:03 PM
3strands Offline
Registered User
 
Join Date: Jun 2012
Location: Sydney, NSW, AU
Posts: 2
linuxchrome
Re: Can login with GDM, can't login to console

It does work, actually. running that command returns "user"

What I found was quite interesting. My system-auth-ac file has a line requiring pam_shells.so
auth required pam_shells.so

each of my users has "/bin/bash" as the shell in /etc/passwd.

For some reason, /bin/bash did not exist in /etc/shells. Once I re-added "/bin/bash" manually, the login have begun working again. pam_shells.so would definitely do it.

I need to find an easier way to turn on debugging for pam, though. Thanks for the assistance!
Reply With Quote
  #4  
Old 3rd June 2012, 03:55 PM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,209
linuxchrome
Re: Can login with GDM, can't login to console

There is a known bug in F16 about the missing /bin/bash entry in /etc/shells. After doing a full update, the most advised fix was to "yum reinstall bash". This bug created all sorts of weird shell behavior.
Reply With Quote
Reply

Tags
console, gdm, login

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 11 ldap gui login/logon fails (console login works) skotay Using Fedora 2 12th June 2009 09:04 PM
Unable to login via KDE GUI, only console login available Query Using Fedora 4 24th April 2009 04:56 PM
upgraded to fc9 can't login at graphic screen but can login from a console clutch Installation, Upgrades and Live Media 6 14th September 2008 03:11 PM
after upgrade to F8 only X-login, but failing to login, returns to login screen angro Installation, Upgrades and Live Media 1 26th November 2007 09:12 PM


Current GMT-time: 13:43 (Saturday, 20-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Creek Side - Stockholm-Arlanda Airport (ARN) Travel Photos on Instagram - Marina of Koper Travel Photos - Te Whiti Park Instagram Photos - Texas State Fair Photos on Instagram