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 12-19-2009, 01:45 PM   #1
osrambrite
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Rep: Reputation: 0
can't log on to notebook - username and password not recognised


I bought my daughter a hp notebook with suselinux10 installed. I ran the setup and entered a username and password as required. However I now find i can't logon to the notebook. The username and password is not recognised. How can I reset them?
 
Old 12-19-2009, 03:57 PM   #2
z-vet
Member
 
Registered: Aug 2004
Location: Israel
Distribution: Debian Bullseye/Sid
Posts: 271

Rep: Reputation: 34
Login in single-user mode and run 'passwd'.
 
Old 12-19-2009, 03:58 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
There are a number of things you can try.

First try logging into a virtual terminal. Press CTRL-ALT-F2 to get there and try logging in. It is possible that there is a problem with logging in to KDE for example. If you end up back at the login but the system doesn't say the password is bad, that could be the case. The earlier versions of KDE sometimes had a problem with a runaway service filling the .xsession_errors file and you may simply have run out of disk space. From the virtual terminal, you can also login as root using the root password, and then run the command "passwd <username>". You will be prompted for a new password for the user.

If you add the boot option "S" or "single" to the kernel boot line when booting up, you may be able to log in as root without a password. Then enter "passwd <username>" to change the users password.

If you rerun the installation program, there will be a rescue system option (look at the bottom of the screen) on an early screen where it asks if you want to upgrade or install. This is after the time zone selection and before the disk formatting options screen. I don't remember, but there may be a url like line pertaining to users or booting where you may be able to fix it. If not, the boot disk will have mounted the drive for you and you can proceed with the next option.

You can boot the computer using a live distro disk. You will need to mount the laptops drive (some live distro's will do this part for you), or you can boot up to the installation disk and select the rescue option. You can press CTRL-ALT-F2 to get to a virtual terminal.

Then run "vim /etc/shadow". (note: another editor may be easier to use but not available in rescue mode. It may have "vim-minimal" or "vim-normal" instead as well. )
Cursor down to the line with the username. It will look like this:
Code:
jschiwal:$2a$10$gIl4k0tZfeKXUzLgHBwXpeudn3eEStmwrZjYJAhT1hgEMreJ6EtwS:14597:0:99999:7:
Position the cursor after the first colon and press either DELETE or the "x" key to delete a character under the cursor. Delete the characters between first two colons. Press "[ESCAPE]:wq" to save and quit. This will give you a null passwd. Then reboot and log in without a password.

Check the contents of the /etc/passwd file. The users entry should look like this. It will probably be OK.
Code:
jschiwal:x:1000:1000:Jim Schiwal:/home/jschiwal:/bin/bash
If you still can't log in. You could copy the characters between the colons in the sample line from /etc/shadow I provided and use the password "sample*sample". I changed my password temporarily for this post.

Last edited by jschiwal; 12-19-2009 at 05:36 PM.
 
Old 12-20-2009, 04:53 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 12-20-2009, 05:45 AM   #5
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
I have a stupid question.

Have you tried to turn ON a <CAPS Lock>? You might have had it ON when you added your username and/or password so try all combinations. Remember, Linux has case sensitive both usernames and passwords.
 
Old 12-20-2009, 11:52 AM   #6
osrambrite
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Original Poster
Rep: Reputation: 0
thank you for all your advice. Caps lock is not an issue. I can't log on as anything. Notebook does not recognise "root" in any form. Ctl/Alt F1 or F2 displays: "linux-lfpg login:". Any ideas? Linux is new to me.
 
Old 12-21-2009, 01:47 AM   #7
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
"liniux-lfpg" is the hostname of your machine. You are to type "root" and when you get "Password:" to type a root password you have set when you installed SUSE. And that should be it for login.
 
Old 12-22-2009, 11:46 AM   #8
osrambrite
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Original Poster
Rep: Reputation: 0
thanks for info. Regrettably the notebook does not recognise any password?
 
Old 12-23-2009, 06:49 AM   #9
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Then you will have to boot from Installation or Live CD and fix password file. I have no time to learn what to do in SUSE.
 
Old 12-30-2009, 08:30 AM   #10
osrambrite
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your help but getting nowhere fast. Notebook came with preloaded software. Am going to change to a more user friendly operating system. Thanks anyway.
 
Old 12-30-2009, 05:51 PM   #11
wolfgangsz
LQ Newbie
 
Registered: Dec 2009
Location: Birmingham, UK
Distribution: Debian, Fedora, ...
Posts: 7

Rep: Reputation: 0
Ah, don't give up just yet. That would be a shame. There is plenty of people here waiting to help.
Let's try a few things:
When you boot the notebook, there should be (right after the BIOS has stopped showing information about hardware) a screen offering a few choices. One of them should be to boot into single-user mode. Do you get this? If so, you should be able to use the arrow keys to select that option and then hit enter. This should boot into the operating system without the need to log on. If you can get this far let me know and I'll talk you through the rest.
 
Old 01-06-2010, 01:15 PM   #12
osrambrite
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Original Poster
Rep: Reputation: 0
After boot up a "HP invent" screen appears with 3 choices F9 = Boot device menu, F10 = ROM Based Setup and F12 = NETBOOT. I do not get an option to choose Single user mode. It then proceeds to the Suselinux desktop with the request for a username.
 
Old 01-06-2010, 04:34 PM   #13
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Ah, then either GRUB is circumvented or it is installed but has timeout at 0 seconds. You will have to use SUSE installation CD/DVD or LiveCD to try to fix this .
 
Old 01-06-2010, 10:22 PM   #14
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 57
To reset the password, you shall boot with knoppix or sthg like this (url)
and remove the KLJDOIUG9878793 complex like from an user /etc/shadow (you can do for root) with unplugging ethernet. type login: root and it'll prompt no password. Do some
Code:
passwd username
and you are back again
 
Old 01-13-2010, 01:05 PM   #15
osrambrite
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Original Poster
Rep: Reputation: 0
thankyou for all your help and advice, but I have installed a new operating system. If it goes wrong I just have to reinstall. I have learnt one thing to not buy hardware with pre installed software and no installation disc. Best wishes to you all.
 
  


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
username and password not recognised manju.v Red Hat 3 02-20-2009 11:54 AM
password not recognised stanW Linux - General 1 01-03-2009 06:01 PM
Is it possible to log in without typing username & password sean_zhang Linux - Newbie 6 06-24-2008 01:57 AM
When session locked by kde screensaver, password not recognised vdemuth Slackware 7 12-12-2007 11:45 AM
Username and Password dance2die Arch 3 09-01-2003 03:32 PM

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

All times are GMT -5. The time now is 09:51 PM.

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