Re: Export Linux Users and Password's to MYSQL database
| From: | Hrishi | Date: | Thu, 01 Mar 2001 12:24:19 +0000 |
| Subject: | Re: Export Linux Users and Password's to MYSQL database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42159@lists.php.net to get a copy of this message | ||
On Thursday 01 March 2001 17:37, Joe Njeru wrote:
> Hi All,
>
> Is there a way I can export the users in my Linux machine to a mysql
> database. Together with their passwords without manually entering all of
> them.
the passwords are usually encrypted and stored in /etc/passwd or /etc/shadow
you'll have to make a script that takes values from here and stores them in
the DB.
these passwords cannot usually be decrypted, so for verification/validation
you will have to use the same encryption algorithm on the password that the
users have sent and compare this with the encrypted key.
> I will appreciate any input.
> Thanks in advance,
>
> Joe Njeru
> Nairobi, Kenya.
> "Where the sun shines all day!!"