LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-09-2003, 03:45 AM   #1
sridharcdac
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Angry Unable to login in redhat9 after upgrading from Redhat7.3


Hi

I have REDHAT 7.3 system. Recently UPGRADED to REDHAT9. After upgrade REDHAT9 is not allowing to login. Unable to login as ROOT or any other user. I don't have any option here.. otherthan Reboot & Shutdown.
Booted system in Single and Emergency mode.
In single mode changed the root password and tryed to login as root by using LOGIN command It's giving following error

login(pam_unix)[262[:session opened for user root by (uid=0)
login[262]am_krb5:Configuration file does not specify default realm building user principal for 'root'
Segmentation fault

I tryed to login as guest user. Getting same above error.

In Emergecny mode it accepts ROOT passwd . But same password is not accepting in normal boot.

It's not givning any errors like Invalid password or any other password. After entering user name ROOT and password , the screen again comes back to Login Prompt with no errors. In case if i type wrong pasword then it's giving error " invalid password , Login incorrect " messages.

I found one solution on Redhat Support . As per that i removed .LOCK files from /etc. Still same problem

Anyone can help me pls.

Regards

Sridhar
 
Old 09-09-2003, 04:32 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
boot again into single mode and run this:

authconfig

/usr/bin/authconfig

on the inital screen, make sure that
- no entries are marked (unless you know what it'll do)

hit next. then on the ff screen, mark:

- Use Shadow Passwords
- Use MD5 Passwords

and leave the other two unmarked. Then hit OK. The two above options are the default in Red Hat.

change your password (to b sure that you did not forget it) and exit from single/rescue mode.

then try logging in.
 
Old 09-09-2003, 06:08 AM   #3
sridharcdac
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Hi

Very Much thanx for info. I did it with authconfig. It's working fine.
Can you kindly let me know why it happend. I think by default it should be able to set the min. required parameteres.
While upgrading it didn't ask any more question. I selected Upgrade GRUB option.

After upgrading GRUB window shows following 4 kernels. As per Redhat doc. it creates Redhat linux & Redhat linux SMP for Pentium IV systems. But here it created additional 2 more kernels. Below r kernel names

Redhat Linux (2.4.20-8smp)
Redhat Linux (2.4.20-8)
Redhat Linux (2.4.20-8bigmem)
Redhat Linix (2.4.20-8BOOT)

Kindly let me know about it

Thanx once again

Regards

S.Sridhar
 
Old 09-09-2003, 10:10 AM   #4
Medievalist
Member
 
Registered: Aug 2003
Distribution: Dead Rat
Posts: 191

Rep: Reputation: 56
Authconfig is slightly broken; if you select Kerberos or LDAP authentication (you selected Kerberos, perhaps by accident) at installation and those services are not available, then you can't log in regardless of the settings in nsswitch.conf.

The bug's documented in Red Hat's Bugzilla, and the guy responsible for fixing it is Nalin Dayabhai. It's been unfixed for a long time now...........

You can hand-edit the /etc/pam.d/system-auth file to get more sane behaviour, but if you run authconfig afterwards it'll overwrite your changes.

I have deleted authconfig from all corporate systems because of this problem. I hand-edit everything instead, so that I can still log in as root even if an LDAP server is not reachable.
 
Old 09-22-2003, 11:28 AM   #5
trekwwe
LQ Newbie
 
Registered: Sep 2003
Location: Cincinnati, OH
Posts: 2

Rep: Reputation: 0
Medievalist,

I have a question about your system-auth file. Could you look at my file and tell me how I can get it to log in as root if I cannot contact an LDAP server?

/etc/pam.d/system-auth:#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required /lib/security/$ISA/pam_env.so
auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok
auth sufficient /lib/security/$ISA/pam_ldap.so use_first_pass
auth required /lib/security/$ISA/pam_deny.so

account required /lib/security/$ISA/pam_unix.so
account [default=bad success=ok user_unknown=ignore service_err=ignore system_err=ignore] /lib/security/$ISA/pam_ldap.so

password required /lib/security/$ISA/pam_cracklib.so retry=3 type=
password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow
password sufficient /lib/security/$ISA/pam_ldap.so use_authtok
password required /lib/security/$ISA/pam_deny.so

session required /lib/security/$ISA/pam_limits.so
session required /lib/security/$ISA/pam_unix.so
session optional /lib/security/$ISA/pam_ldap.so


I am running RedHat Linux 9.0
 
Old 09-22-2003, 12:46 PM   #6
Medievalist
Member
 
Registered: Aug 2003
Distribution: Dead Rat
Posts: 191

Rep: Reputation: 56
On the second "account" line (the complicated one) add the phrase "authinfo_unavail=ignore" and you'll be OK.

account [default=bad success=ok authinfo_unavail=ignore user_unknown=ignore service_err=ignore system_err=ignore] /lib/security/$ISA/pam_ldap.so


That's the authconfig bug - if you run authconfig again it will overwrite this setting (so, I remove authconfig, personally).

This bug exists in Red Hat 7 through 9. It's pretty severe; if the local ldap daemons fail you can't recover without booting single-user mode. Apparently RH don't feel it's important enough to fix, though...
 
Old 09-22-2003, 12:57 PM   #7
trekwwe
LQ Newbie
 
Registered: Sep 2003
Location: Cincinnati, OH
Posts: 2

Rep: Reputation: 0
thanks for the info Medievalist. That worked like a charm!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Upgrading to Badger! Can't login anymore after upgrading? BellaSha87 Ubuntu 1 12-03-2005 12:09 PM
upgrading gnome in redhat9 shujja Linux - Newbie 1 08-29-2005 12:41 AM
how to install libodbc++ and unixODBC on RedHat7.3 and RedHat9? marmarchi Linux - Software 1 10-24-2004 07:43 AM
unable to install redhat9 karelgentens Linux - Software 4 06-23-2003 05:10 PM
Upgrading RedHat8 to RedHat9 MarcRJacobs Linux - Newbie 5 05-15-2003 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:48 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