RE: [PHP] Export Linux Users and Password's to MYSQL database

From: Date: Thu, 01 Mar 2001 13:37:21 +0000
Subject: RE: [PHP] Export Linux Users and Password's to MYSQL database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42165@lists.php.net to get a copy of this message
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:joenjeru@gatewayonline.co.ke] > Sent: Thursday, March 01, 2001 5:08 AM > To: php-general@lists.php.net > 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#42165) next »