LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-07-2008, 12:27 PM   #1
kn2y
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
Angry New system won't allow root after installation - using correct password and "root"


I installed CentOS 5.2 on a brand new machine and it was working fine for two days except that no linux drivers were installed for the lan adaptor. I finally found the drivers (on the mother board CD) and attempted to install them. I needed to reboot following and when it came up it would not allow a root login. I fooled around and searched google for a way to change the root password without reinstalling but found none so I re-installed allowing a new format and all. When I started up for the first time the password still did not work.. I always use the same pw for root so I know it is correct. I have had a linux server online for the past six years or so. Some one else set it up for me but I decided it was time to fly from the nest!
 
Old 11-07-2008, 12:36 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,037

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Some of the basics that you might already know, but I have to ask just in case:
  • use a true login and not su, some systems will not allow su login unless your user is on the wheel group (dunno about centos)
  • some distros do not allow root logins on some vt's, in gentoo we use /etc/security/access.conf for that
  • look for caps lock when setting the password, and when entering it afterwards
 
Old 11-07-2008, 01:01 PM   #3
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Two questions:
- can you log in as a normal user?
- If not and if you run X, which keyboard layout and which graphics card do you use ?
 
Old 11-07-2008, 03:51 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,146
Blog Entries: 3

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
Hi,

Welcome to LQ!

I agree with the above posters on simple things you should check. Keyboard first, caps lock or keyboard layout during install.

If you have a livecd then boot using that.

After you get to the login then from the cli (command line);

Code:
~#mkdir /Your_temp                   #temporary mount point
~#mount /dev/your_device /Your_temp  #this is the device you installed to
~#chroot /Your_temp                  #change to yours
~#cd /Your_temp/etc                  #change to directory with passwd
If you feel you have a password problem then you can modify the '/etc/passwd'.

Code:
excerpt from 'man passwd';
NAME
       passwd - change user password

SYNOPSIS
       passwd [name]
       passwd [-x max] [-n min] [-w warn] [-i inact] login
       passwd {-l|-u|-d|-S|-e} login

DESCRIPTION
       passwd  changes  passwords  for  user accounts.  A normal user may only
       change the password for his/her own account, the super user may  change
       the password for any account.

   Password Changes
       The user is first prompted for his/her old password, if one is present.
       This password is then encrypted and compared against the  stored  pass-
       word.  The user has only one chance to enter the correct password.  The
       super user is permitted to bypass this step so that forgotten passwords
       may be changed.
 
Old 11-07-2008, 04:19 PM   #5
kn2y
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Exclamation

No, can no longer login as any user. I've tried the caps key both ways. I don't mind reinstalling but did that twice and it accepted the passwords on initial setup and then refused them after final boot. Strange! Is there any way to wipe the disk format (altho the installation asks me if I want to and I say "yes") and start fresh?

Doug
former XP user


Quote:
Originally Posted by i92guboj View Post
Some of the basics that you might already know, but I have to ask just in case:
  • use a true login and not su, some systems will not allow su login unless your user is on the wheel group (dunno about centos)
  • some distros do not allow root logins on some vt's, in gentoo we use /etc/security/access.conf for that
  • look for caps lock when setting the password, and when entering it afterwards
 
Old 11-07-2008, 05:09 PM   #6
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
You know, there is an issue with some nvidia drivers and non-us keyboard layouts. I have been bitten by it more than once in the last months. Everything is working fine, then you install the driver and suddenly you can't login anymore. After a while, I figured out that I could log in if I used my azerty keyboard as if it had a US layout, typing a "q" where an "a' was needed, etc.
 
Old 11-07-2008, 07:52 PM   #7
kn2y
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Talking Thanks to all that offered help.

I did a reinstall and solved the problem.. thanks to all who offered solutions.. I hope to be active here and maybe someday can answer a few questions myself.. Doug

Quote:
Originally Posted by kn2y View Post
I installed CentOS 5.2 on a brand new machine and it was working fine for two days except that no linux drivers were installed for the lan adaptor. I finally found the drivers (on the mother board CD) and attempted to install them. I needed to reboot following and when it came up it would not allow a root login. I fooled around and searched google for a way to change the root password without reinstalling but found none so I re-installed allowing a new format and all. When I started up for the first time the password still did not work.. I always use the same pw for root so I know it is correct. I have had a linux server online for the past six years or so. Some one else set it up for me but I decided it was time to fly from the nest!
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"No root file system is defined" - During installation process of Ubuntu Trinric Linux - Newbie 7 02-14-2011 12:44 PM
"su - root" giving incorrect password but normal root login works. ?? arashi256 Linux - Newbie 10 06-03-2010 03:13 AM
No password set for "root" during installation ChootarLaal Ubuntu 4 03-02-2008 12:50 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
where is the "enter root password or Contrl-D to continue" after FS repair at boot jg167 Red Hat 0 11-17-2004 01:20 AM


All times are GMT -5. The time now is 07:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration