Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
About length of /etc/shadow hashes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kamikaze04
Guru
Guru


Joined: 28 Mar 2004
Posts: 366
Location: Valencia-Spain

PostPosted: Sun Feb 26, 2006 11:00 am    Post subject: About length of /etc/shadow hashes Reply with quote

Looking at my shadow file, i've found this:

Code:

.
.
.
user1::VMM6rgiPs3K1a:13203:0:99999:7:::
user2:$1$uHh56Du8$4lVLDgcsYZsCJ7YN38V2u/:13203:0:99999:7:::
.
.
.


Why some users have one length of hash and others longer?

I've usually seen all my hashes like user2, but for user1 i changed password with webmin...so i think it could be related with that...the thing is...why both users can log in?

Thanks a log
_________________
Todo lo que quisiste saber sobre google en: www.noticiasgoogle.es
Back to top
View user's profile Send private message
Houdini
Apprentice
Apprentice


Joined: 14 Jun 2002
Posts: 224
Location: New Mexico Tech, Socorro, NM

PostPosted: Sun Feb 26, 2006 6:12 pm    Post subject: Reply with quote

Does user1 work? That extra : indicates that the user has no password hash, and thus can probably log in without a password. Try that locally (since you may have SSHd configured to not allow null passwords.
_________________
^]:wq
Back to top
View user's profile Send private message
kamikaze04
Guru
Guru


Joined: 28 Mar 2004
Posts: 366
Location: Valencia-Spain

PostPosted: Sun Feb 26, 2006 6:44 pm    Post subject: Reply with quote

Sorry i copy/pasted an ":" extra... :oops: :oops:

Yeah, both users work with their passwords...
_________________
Todo lo que quisiste saber sobre google en: www.noticiasgoogle.es
Back to top
View user's profile Send private message
Houdini
Apprentice
Apprentice


Joined: 14 Jun 2002
Posts: 224
Location: New Mexico Tech, Socorro, NM

PostPosted: Sun Feb 26, 2006 7:48 pm    Post subject: Reply with quote

kamikaze04 wrote:
Sorry i copy/pasted an ":" extra... :oops: :oops:

Yeah, both users work with their passwords...


Oh, good. The way it was originally would have resulted in me saying "you got 0wned, start from scratch". :)

The "$1$" on the second one implies it is an MD5 hash (I think). The lack of $N$ on the first one means it's probably an old crypt() password. Your system will deal with a few strange hash types without complaint, which is why they both work. Webmin (evidently) is still using crypt(), which isn't as secure. I would read up on getting it to use MD5, SHA1, or something stronger.

Basically, don't worry too much about it. Passwords that look like user1 are "less" secure. If you're running a server or other high-risk target, change the password again with the command line. Otherwise, not. Either way, convince webmin to do the right thing whenever you have some time/energy to mess with it.
_________________
^]:wq
Back to top
View user's profile Send private message
kamikaze04
Guru
Guru


Joined: 28 Mar 2004
Posts: 366
Location: Valencia-Spain

PostPosted: Sun Feb 26, 2006 8:53 pm    Post subject: Reply with quote

Thanks a lot...very instructive your answer :)

Thanks again
_________________
Todo lo que quisiste saber sobre google en: www.noticiasgoogle.es
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum