Discussion Locked

Multiple FTP Directories with individual

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I was wondering if anyone might be able to give me some insight on how to create multiple ftp directories with individual id's (Not Users), using IIS 5.

This is what I'm trying to accomplish. I work for a college that teaches WEB development classes. Each student in the class will have their own directory (44 students in all) on my new web server. I want each student to be able to ftp into their directory only, without having to create actual users. Basically, when a student FTP's into my web server I need a way of redirecting that student based on their user ID to their folder only. Can this be done using Microsofts Default FTP site? The only way that I've been able to accomplish this is through WAR-FTP.

Any advice would be greatly appreciated.
Jeff

3 replies

by eastexpert

Jeff,
with MS IIS 5 you can control the access only via User Accounts. I don't see anything wrong with giving them _local_ accounts on the FTP server (you can create them in bulk quantities using Resource Kit ADDUSERS.EXE tool). Give those accounts"Log On Locally" right via User Manager, by assigning them to a user Group. Or they will get ERROR 530 trying to login to FTP. Disable Anonymous Login in Internet Services Manager.

Then goes the trick:
Under IIS, a user logging in gets transported to the directory (real OR virtual one) named after his login name. If there's no such dir, he remains in the root dir. (e.g. YOU, the Teacher).

Under Default FTP site, create multiple VIRTUAL subdirs, pointing to arbitrary directories on disk.Each subdir must be assigned proper security ACL, so only John Doe (jdoe) can login to his directory. Set ACLs on root directory so all of them have access to it. Or again, they won't get into FTP.

The good thing is: Virtual Directories are not listed under Root (unless you create REAL empty folders under FTP root, which you can then use to navigate those dirs yourself as an Admin of this server). That is by design.

Your ACLs will not allow wrong people to get inside someone's directory.

You might say that's a lot of work. Not really, if you use batch files, (MKDIR commands), Resource Kit tools like CACLS.EXE and like (Setting ACL permissions), and .VBS scripts with Windows Scripting Engine (Add virtual FTP dirs) to automate the process. Your programmer will happily do these in no time.

You may go further and assign Disk Quotas to users, (you've got 2000, right? :) so they don't trash the whole disk up with their "garbage" and don't spoil everything on server.
________________
Good Luck,
"Lucky" Max!

This discussion is closed to new replies.