Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 151
  • Last Modified:

Create FTP folders

I would like to dynamically create folders for users to access via ftp, from asp or COM. I can program well in COM and ASP but I am not really sure on how I would achieve this directly, let alone through COM or ASP.

I basically want to create a ftp folder that only a specific user can have access to with a password and username. With a 5Mb limit on the size of the folder.

I could do with finding this out asap.......

Thanks

James

0
James_stillman
Asked:
James_stillman
  • 3
  • 2
1 Solution
 
Droby10Commented:
look into use of the Scripting.FileSystemObject for file/folder creation...

i would use cacls for folder permission settings...

build it into a com object and run with an account that has permission to create subfolders and modify permissions under the ftp root you are choosing.  the ftp service will handle username/permission verification.

i'll have to dig up info on setting the quota.
0
 
James_stillmanAuthor Commented:
Could you tell me what calcs is please??

I have been trying to set the file permissions bt am having a bit of trouble, maybe this is the answer
0
 
AvonWyssCommented:
CACLS is a command-line tool to view, set and reset permissions of files and folders. Open a command prompt, type CACLS /? and you'll see.

For the creation of virtual FTP folders which are being used directly as home directory for users, look at these two KB articles:
http://support.microsoft.com/support/kb/articles/Q138/6/98.asp
http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q247364

As for the max 5MB size, you'd have to have disk quotas enabled; however, I don't know how to set user disk space quota entries programmatically via ASP/COM.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
James_stillmanAuthor Commented:
I don't seem to be able to run calcs, I go to the command prompt and type calcs the command isn't recognised.

I have searched my machine for a calcs.exe file and there is none, can I download it from somewhere??
0
 
AvonWyssCommented:
It's CACLS, not CALCS...!
(Change ACL'S)
0
 
James_stillmanAuthor Commented:
Thanks for the help Droby, but AvonWyss pretty much nailed that one for me, Many Thanks.......
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now