Re: changing unix password in php?
| From: | J.F.Kishor | Date: | Wed, 23 Jan 2002 04:33:13 +0000 |
| Subject: | Re: changing unix password in php? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81641@lists.php.net to get a copy of this message | ||
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
>