b0f2 Login broke after upgrade; how to fix it? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old August 22nd, 2009, 19:53
fsrietta fsrietta is offline
Junior Member
 
Join Date: Aug 2009
Location: Atlanta, GA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Login broke after upgrade; how to fix it?

I have recently completed an upgrade of a FreeBSD server than had been running FreeBSD 6.2-RELEASE. I began the update process after the system hard drive (data is on a separate array) and a network card failed. These were the steps that I used on the amd64 system:

1. Source upgraded from 6.2 to 6.4
2. Upgraded from 6.4 to 7.2-RELEASE using the 7.2-RELEASE CD1 image I already had in the office
3. Dropped into single user mode, ran cvsup for the ports collection
4. Tried to run portupgrade -af in batch mode and received lots of errors about the pkdb (fiddled with pkgdb -F and pkgdb --auto-fix for a while)
5. Finally got portupgrade -af to rebuild the ports
6. Rebooted into normal mode and found that the software ran fine
7. Ran freebsd-update fetch && freebsd-update install to move to 7.2-RELEASE-p2

This is where things got ugly. Suddenly, logins started failing for all users. I had to drop into single user mode to trouble-shoot. In single user mode, I tried to su to a user and received this error:

Quote:
login_getclass: unknown class 'default'
login_getclass: no default/fallback class 'default'
pam_acct_mgmt: error in service module
I inspected the various login configuration files (particularly login.conf), but nothing seemed out of place. Attempting to run "cap_mkdb /etc/login.conf" failed. I was about to revert the build thinking something must have gone wrong, but I copied login.conf and login.access from a backup back into /etc/ and ran cap_mkdb /etc/login.conf" once more. After this, users were able to authenticate again and the system is working.

I am not sure how login.conf became mangled during the update process. Visually inspecting the file did not show any obvious errors, but I have never edited login.conf before.

I hope that this post will help to document a possible solution should someone else ever experience the same login_getclass errors.
Reply With Quote
  #2  
Old August 22nd, 2009, 20:15
vivek's Avatar
vivek vivek is offline
Member
 
Join Date: Nov 2008
Location: Hyper Space
Posts: 809
Thanks: 3
Thanked 184 Times in 102 Posts
Default

Did you rum mergemaster command to merge your config files?
__________________
Neither in this world nor elsewhere is there any happiness in store for him who always doubts. If you enjoyed my answer please consider donating some money to FreeBSD foundation @ http://www.freebsdfoundation.org/
Reply With Quote
  #3  
Old August 24th, 2009, 13:47
fsrietta fsrietta is offline
Junior Member
 
Join Date: Aug 2009
Location: Atlanta, GA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I ran mergemaster after the source upgrade. I did not run mergemaster after the freebsd-update upgrade.
Reply With Quote
  #4  
Old August 26th, 2009, 08:10
astadtler astadtler is offline
Junior Member
 
Join Date: Jul 2009
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You didnt mergemaster your .passwd file did you?
Reply With Quote
Reply

Thread Tools
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
Best way to check and fix corrupt disk? bsdme2 General 12 September 16th, 2010 11:40
No maintainer and a port won't rebuild? Maybe a fix here, if just one dependency... jb_fvwm2 Installation and Maintenance of FreeBSD Ports or Packages 2 August 24th, 2009 09:30
port not generating Fix eydaimon Installation and Maintenance of FreeBSD Ports or Packages 3 June 29th, 2009 19:08
Can I fix or recover a UFS partition? fredBSD General 0 April 14th, 2009 17:57
fix problems with marked as IGNORE packages ccc Installation and Maintenance of FreeBSD Ports or Packages 1 February 5th, 2009 03:09


All times are GMT +1. The time now is 04:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0