LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-30-2005, 10:45 PM   #1
feigenluis
LQ Newbie
 
Registered: May 2005
Posts: 8

Rep: Reputation: 0
linux asks me for a password


hi everybody!!!! I've just installed linuxmandrake 10.1, it installed fine, but when it load keeps asking me for a password, but I chose the option of no passwords because I'm the only one who uses the PC, so I dont know if this is normal and I dont want to waste time installing it again and less to installit with a password.
Ideas please.
Thanks
 
Old 05-30-2005, 11:12 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
i don't use mandrake, but i would assume the "passwordless" option is for a regular user account... i would imagine you'd still need a password for the root account...
 
Old 05-31-2005, 01:51 AM   #3
naimslim89
Member
 
Registered: Mar 2005
Location: London, United Kingdom
Distribution: Fedora Core 5
Posts: 83

Rep: Reputation: 15
When you say that it keeps asking you for a password, do you mean that you choose your user, and a password box still appears?

This is normal. Just hit enter with a blank password box and you should be able to log in. It's not like in Windows XP where if you don't have a password, you can just click on your username and go.
 
Old 05-31-2005, 03:48 AM   #4
feigenluis
LQ Newbie
 
Registered: May 2005
Posts: 8

Original Poster
Rep: Reputation: 0
already done that

nop....I've tried with no characters, with my username, even with my windows password(i've 2 OS's in my pc)none of them worked.......the login window shows nothing but a box requesting me for a password, only that, ani't showing any username.
i dont know what is wrong with that stupid linux OS
 
Old 05-31-2005, 05:10 AM   #5
naimslim89
Member
 
Registered: Mar 2005
Location: London, United Kingdom
Distribution: Fedora Core 5
Posts: 83

Rep: Reputation: 15
Hm..... if you are 100% sure that that's the password you chose at install time, then what I'd personally do is download a copy of Knoppix-STD, burn it to CD, and use the password recovery tools included on the LiveCD to crack the password as written in the /etc/passwd file. Then again, I'm sure there's more civil ways, just offering a personal suggestion...
 
Old 05-31-2005, 05:14 AM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Quote:
Originally posted by naimslim89
Hm..... if you are 100% sure that that's the password you chose at install time, then what I'd personally do is download a copy of Knoppix-STD, burn it to CD, and use the password recovery tools included on the LiveCD to crack the password as written in the /etc/passwd file. Then again, I'm sure there's more civil ways, just offering a personal suggestion...
the password is actually in the /etc/shadow file... but you don't need to crack the password, you can just erase it... either way, i don't think none of this is an option in this case... i sense a re-install is on it's way...


Last edited by win32sux; 05-31-2005 at 05:15 AM.
 
Old 05-31-2005, 05:28 AM   #7
cerebellum
LQ Newbie
 
Registered: Jun 2004
Location: Kuala Lumpur
Distribution: Redhat, Mandrake
Posts: 21

Rep: Reputation: 15
Re: linux asks me for a password

Quote:
Originally posted by feigenluis
hi everybody!!!! I've just installed linuxmandrake 10.1, it installed fine, but when it load keeps asking me for a password, but I chose the option of no passwords because I'm the only one who uses the PC, so I dont know if this is normal and I dont want to waste time installing it again and less to installit with a password.
are u referring to autologin feature?
 
Old 05-31-2005, 05:28 AM   #8
naimslim89
Member
 
Registered: Mar 2005
Location: London, United Kingdom
Distribution: Fedora Core 5
Posts: 83

Rep: Reputation: 15
Quote:
Originally posted by win32sux
the password is actually in the /etc/shadow file... but you don't need to crack the password, you can just erase it... either way, i don't think none of this is an option in this case... i sense a re-install is on it's way...
So hang on... what's the difference between the shadow file and the passwd file? Both of them can be used to extract the password, can't they? ...

Btw feigenluis, if you can log in as root, open up a terminal window, and type:

passwd user
(Where user is your username)

You'll be prompted for the new password (without having to specify your old one).

Last edited by naimslim89; 05-31-2005 at 05:30 AM.
 
Old 05-31-2005, 05:45 AM   #9
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Quote:
Originally posted by naimslim89
So hang on... what's the difference between the shadow file and the passwd file? Both of them can be used to extract the password, can't they? ...
the password is stored in the shadow file... that's why the shadow file can only be read by root, while the passwd file can be read by any user... back in the day, the passwords were stored in the passwd file... this kinda sucked, because even though the passwords were hashed, the file was still readable by everyone... so now with the shadow suite the password is stored in the shadow file, which is only readable by root...

look at the root user in my passwd file:
Code:
root:x:0:0::/root:/bin/bash
now look at the root user in my shadow file:
Code:
root:$1$6er12l/a$fOsu/b1Tesd3ZiLo/6ryx.:12931:0:::::
as you can see, the hashed password only shows-up in my shadow file...

and take a look at the perms:
Code:
bash-3.00# ls -l /etc/passwd
-rw-r--r--  1 root root 797 2005-05-31 03:22 /etc/passwd

bash-3.00# ls -l /etc/shadow
-rw-r-----  1 root shadow 589 2005-05-31 03:22 /etc/shadow
http://www.tldp.org/HOWTO/Shadow-Password-HOWTO-2.html


Last edited by win32sux; 05-31-2005 at 05:55 AM.
 
Old 05-31-2005, 06:02 AM   #10
naimslim89
Member
 
Registered: Mar 2005
Location: London, United Kingdom
Distribution: Fedora Core 5
Posts: 83

Rep: Reputation: 15
Aaah, I see... Thanks for clearing that one up
 
Old 05-31-2005, 06:07 AM   #11
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Quote:
Originally posted by naimslim89
Aaah, I see... Thanks for clearing that one up
you're very welcome...
 
  


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
login asks for password twice before authenticating xfurious_mindx Linux - General 9 09-17-2012 08:54 AM
suse live cd asks me for login name then password?? ginda Linux - Newbie 1 10-10-2004 04:48 PM
network asks for password????? naginata Linux - Networking 1 03-28-2004 09:45 AM
Samba asks password element Linux - Networking 1 09-11-2003 04:35 PM
Redhat 8 asks for root password before dialling head8k Linux - Newbie 9 02-21-2003 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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