Well, we run both IIS FTP and WWW on the same machine. The WWW root
directory is E:\WWW and the FTP root directory is also E:\WWW. We put
our web pages in E:\WWW and we've written some batch files to add users
automatically and set permissions.
FTPUSER.BAT
----
@echo off
echo ftpuser [User Login] [User Password]
net user %1 %2 /add /domain /comment:"%2"
e:
cd\www
md temp\%1
move temp\%1
echo y | cacls %1 /G %1:F
This may vary between installations, but basically, under NT, when you
create a directory, it inherits the permissions of its parent directory,
so the temp directories permissions are:
Administrators:Full Control
System:Full Control
Everyone:Read
the last command gives the user full control.
If you put this file in your scripts directory, and enable batch file
script execution in the registry script mappings, you could call this
via the web like so:
http://yourserver/scripts/ftpuser.bat?username+password
But, if someone else stumbled across that, they'd have a field day. We
do remote creation via the web, but it is a little more involved. We
use rsh on a management machine and have an rshd running on the web
server. We do roughly the same thing for mail accounts.
Good Luck,
Phil
-- ------------------------------------------------------------Phillip Heller http://www.csonline.net/phellerpheller@csonline.net Internet Engineer, CSOnline -=! I write what I think, not what my employer does !=-------------------------------------------------------------