LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Add FTP User Via Web Form (http://www.linuxquestions.org/questions/linux-general-1/add-ftp-user-via-web-form-186903/)

alanpollenz 05-28-2004 08:12 AM

Add FTP User Via Web Form
 
I would like to be able to add FTP only users via a PHP web based form. The form would be located in a password protected area and I would be the only one with access to the form. I'm running RH 9.

The following creates the directory and chmods it, but the user is not added. Any ideas?


Code:

system ('useradd testuser -p test');
$dir="testee";
mkdir($dir,0755);


Thanks.

Alan Pollenz

donni 05-28-2004 03:09 PM

You should ask this in a programming forum.

If the user isn't added, maybe it's not possible with the permissions granted to the php script.
Don't forget `man useradd` just to make certain.

btmiller 05-28-2004 05:14 PM

You could also just download and install webmin for this, unless there's some reason why it has to be something you've written yourself.


All times are GMT -5. The time now is 08:11 PM.