LinuxQuestions.org
Review your favorite Linux distribution.
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 07-21-2012, 12:15 PM   #1
hedgeaus
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Rep: Reputation: Disabled
Debian Squeeze: username/passwords not working after installation


Hi, I just re-installed Debian Squeeze 6 (in expert mode which I found very useful), don't remember if I was requested to set root/user passwords - maybe system used user name and passwords from previous installation because I left home directory unchanged?

To start Debian, I need username & password on desktop but old ones are not working ("authentification failed"); no other options on desktop. I know how to use partedmagic program to access file system, but not sure what to do? Many thanks for suggestions.
 
Old 07-21-2012, 12:28 PM   #2
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
You can look for the line that starts with 'kernel' in grub and append 'init=/bin/bash' this will boot into a single user mode with you as root where you can change root password by issuing 'passwd'.
Look for some info in log files in /var/log. No matter what the installaton is Debian will ask for a root password.
Hope this helps.
 
Old 07-22-2012, 01:28 AM   #3
hedgeaus
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Many thanks.

I managed to get into grub edit mode and saved extra "init=bin/bash" line, but still getting user-login-password screen, and this line is not on grub edit list on the next boot. Debian time is 10h in the future, but cant be corrected in login desktop (hope this is not a problem).

var/log shows user name (which is correct)and then "no such username". It also shows password change fact but not actual password.

Under grub directory, there is only one starts with "kernel" file: kernel.img but I found no way to open/edit it.

More ideas?..

Last edited by hedgeaus; 07-22-2012 at 01:58 AM.
 
Old 07-22-2012, 02:49 AM   #4
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
The 'init=/bin/bash' has to be appended at the bot time. This is when the bootloader loads, when you have the grub screen with all the boot options.
In case this is not possible boot with a live cd - or boot with debain with rescue mode - and edit the /etc/passwd and delete the charaters ':0:0:' after the root entry (be careful that is our root password. You would next nned to delete the encrypted password from '/etc/shadow' after the root: entry (this is the encrypted password). The root password would then be blank.
I just thought of an easier way, boot with a live cd go to /etc/sudoers and uncomment the last line (works for slackware) and then you can log in as yourself and just run sudo, that should do it.
MAKE A BACKUP OFF THE FILES YOU EDIT. MAKE SURE THAT THE BACK UPS ARE VERIFIED.
read my signature

Last edited by honeybadger; 07-22-2012 at 12:17 PM.
 
  


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
Software installation on Debian squeeze heirkeyso Linux - Newbie 15 07-20-2012 07:28 AM
Installation of firefox 13 in Debian squeeze kpprasannan Linux - Newbie 1 06-25-2012 05:55 AM
[SOLVED] Debian Squeeze NAT not working newbie to linux Linux - Networking 7 03-30-2012 11:31 AM
[SOLVED] Wifi not working in Eee PPC 1000HE (Debian Squeeze), but ethernet is working someshpr Linux - Laptop and Netbook 8 10-10-2011 03:59 PM
Various segmentation faults Debian Squeeze Virtualbox running on Debian Squeeze host fordwrench Debian 1 07-21-2011 03:55 AM


All times are GMT -5. The time now is 07:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration