Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

Re: [PHP3] Can I control unix file through web browse ? From: Alex Holden (alex <email protected>)
Date: 03/08/99

On 8 Mar 1999 lmk1 <email protected> wrote:
> Now I love using php3.Now I must do that work.
> Through www browser,customer will provide their username
> and password.Then they can deal with their file in their
> own directory.The key mission I must do is how to change
> attribute from nobody to their own UID in unix.How can I do?

The proper way to do this is to have a suid root binary which
checks if the user/pass you give it is correct, and if so, drops the
UID/GID and forks a process under these new permissions. The easiest way
to do it though may be to simply write an ftp client with a pretty HTML
interface in PHP.

--------------- Linux- the choice of a GNU generation. --------------
: Alex Holden (M1CJD)- Caver, Programmer, Land Rover nut, Radio Ham :
-------------------- http://www.linuxhacker.org/ --------------------

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>