Depends. say you are wanting to put the passwords from your servers passwd
file, you would only be able to export the encrpypted passwords, since they
are one-way encrypted. you will not be able to store plain text passwords in
the db from your passwd file through importing it. if you want to do that
the best way is to send a mass email to the users, sending the to a link
with some scripting, having them enter their password. the scripting with
take the inputed password, then encrypt it and compare it against the passwd
file. if it's a match it would insert the users password in the mysql users
table. people like to use plain text passes in db's either because they want
to be able to send their users their passes in the email incase they are
forgotten or other functions that require a plain text password to be
displayed, or maybe laziness =). encrypting is better security wise, for a
number of reasons. mainly are threats from both your remote code hacker, and
anyone with an account on the system, not to mention admins and employees.
do a password hint and/or question (allowing the user to change his pass
incase he forgets it). it may not be possible or neccessarily needed for all
applications, but those with sensitive information should always be
encrypted.
> -----Original Message-----
> From: Joe Njeru [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 01, 2001 5:08 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Export Linux Users and Password's to MYSQL database
>
>
> 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.
>
> I will appreciate any input.
> Thanks in advance,
>
> Joe Njeru
> Nairobi, Kenya.
> "Where the sun shines all day!!"
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]