Solved

Create FTP folders

Posted on 2001-09-16
6
145 Views
Last Modified: 2010-04-13
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
Comment
Question by:James_stillman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:Droby10
ID: 6486521
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
 
LVL 1

Author Comment

by:James_stillman
ID: 6486605
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
 
LVL 14

Expert Comment

by:AvonWyss
ID: 6487138
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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 1

Author Comment

by:James_stillman
ID: 6487770
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
 
LVL 14

Accepted Solution

by:
AvonWyss earned 100 total points
ID: 6487784
It's CACLS, not CALCS...!
(Change ACL'S)
0
 
LVL 1

Author Comment

by:James_stillman
ID: 6504886
Thanks for the help Droby, but AvonWyss pretty much nailed that one for me, Many Thanks.......
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Popular third-party chat platforms like Slack, Discord, and Telegram are just a few of the many new productivity applications that are being hijacked by cybercriminals to create command-and-control (C&C) communications infrastructures for their malw…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question