[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Extract password from /etc/passwd
- Subject: Re: [cobalt-users] Extract password from /etc/passwd
- From: Fabrice Prémel <fabrice@xxxxxxxxxx>
- Date: Thu Oct 19 09:16:29 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
>How do I 'decrypt' the password in the /etc/passwd file.
You can not. This is a one-way encryption scheme.
If you want to compare a user-supplied password and an entry in
/etc/passwd, crypt the user-supplied one (using crypt()), then
compare them.
You might also want to look for PAM and such if you do not want to
reinvent the wheel.
Fabrice Prémel.