Re: changing unix password in php?
| From: | Michael Geier | Date: | Wed, 23 Jan 2002 07:41:01 +0000 |
| Subject: | Re: changing unix password in php? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81647@lists.php.net to get a copy of this message | ||
You could run a secondary web server running as user root (this requires
running on an alternate port > 1000 for apache).
I would also suggest use of .htaccess to manage some security for the page.
--
.mike
Quoting "J.F.Kishor" <kishor@ooty.tenet.res.in>:
> Hi,
>
> Even I came accross the same problem, so I tried to solve it using
> setuid or suexec with PHP, but I was not able to get with it, I was not
> able to fix setuid or suexec only, so what I did is, we wrote a C script
> that will add, modify or delete the unix password (/etc/passwd), then we
> set the 'C' file permission as [ -rwsr-sr-x 1 root root 19708 Oct 2 10:54
> filename ]. Now it is working fine.
>
> So try with setuid or suexec, you find details in PHP manual, and if it
> does'nt work with PHP and if you work as to be done urgently then why
> don't you try writing a 'C' script. Goodluck....!
>
> My request to those who read this
> ----------------------------------
>
> If any one there have done something like this using setuid or suexec with
> php or by some other way in PHP, please let me know cos I want to convert
> 'C' script to PHP.
>
> cheers
> kishor,
> Nilgiri Networks.
>
>
>
> On Tue, 22 Jan 2002, 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
> >
>
>
> --
> 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
>
>
-------------------------------------------------
This mail sent through CDM Sports Webmail.