Yeah, crypt()
Don't forget the salt.
I did the same thing.
Moved all my users into a database table with unix encrypted passwords, and
run a function that dumps them all out to my /etc/passwd file.
It appends the database data onto a passwd.base file that I made, that
includes all the protected system accounts.
Of course, I only run this from a secure server, only one user with a very
long and obscure userid and password can access that database in any way, no
one else can telnet in, and the database can not be accessed of the net, and
I used every other form of page authorization I could manage to put in,
prior to getting to the page that does all this.
Including Alias/ScriptAlias directives to move the files out of the
DocumentRoot.
And again, don't forget to generate a random salt argument.
On 4/5/01 10:36 AM, "Diogo Saad" <[EMAIL PROTECTED]> wrote:
> Is there a function that encrypts a string the same way the shadow file
> does???
> What I wanna make is a page that changes my unix account password ....
>
> Thanx
>
>
> _______________________________
> Diogo Saad
> [EMAIL PROTECTED]
> Inter Business Tecnologia e Serviços.
>
>
--
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]