[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] PHP Script / Unix system
- Subject: Re: [cobalt-users] PHP Script / Unix system
- From: Greg Hewitt-Long <greg@xxxxxxxxxxxxxxxxxxx>
- Date: Sun Sep 23 09:56:09 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
>Hi,
>
>I'm developing a PHP System which will have everything, it will be almost
>like a Cobalt system, but even better. What I want to do now, is change the
>user password using a PHP script, can it be done using system(""); or any
>other command on PHP? Is there any script in PHP that does that? I can't
>change the user password using "system("passwd user newpass"); cause it
>needs confirmation of the password and the string is not correct, does
>anybody here knows how to do that?
>
>Please, e-mail me back if you know anything about this.
>
>Thank you,
The easiest way to do this, would be to write your own passwd command in C - I think Cobalt must have done something like this, as the command they use does much more than simply change the unix password.
You write the C program, build in you validation however you want, and call the C functions to change the unix password. If I could be bothered to reach for my bookshelf - I'd help more - you need the book "C on the Unix System" - it's an O'Reilly boox I think - one of the old nutshell guides - it's pink one.
Try http://www.oreilly.com/
regards
Greg
--
http://www.webyourbusiness.com/
Providers of E-Commerce Software &
Web Design Consultancy and Services.
PH: (970)266-0195 FAX: (970)266-0158