Re: changing unix password in php?

From: Date: Wed, 23 Jan 2002 01:10:28 +0000
Subject: Re: changing unix password in php?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-81737@lists.php.net to get a copy of this message
I tried to use passthru(su -c root chmod 777 filename) hoping that the return would be the prompt for a password, and tried it without the -c with no luck either. Do you know how to get the command (in this thread the command passwd) to be executed when the web server is running as user apache or nobody etc? "Bogdan Stancescu" <mgv@fx.ro> wrote in message news:3C4D835B.96EC3A44@fx.ro... > You're most certainly going to end up running a command on the system with root permissions which will include some user > submitted data. Be extra careful with that - you always have to bear in mind that the user might enter multiple commands in > the respective submission. > > Bogdan > > > Charlie Grosvenor wrote: > > > Hi > > I would like to create a page in php where a user can change their unix password, does anybody know how i can do this? > > > > Thankyou > > > > Charlie > >

« previous php.general (#81737) next »