how do I code a user created subdirectory?

From: Christopher Zacharias (christopher_zacharias@hotmail.com)
Date: 07/31/02


From: "Christopher Zacharias" <christopher_zacharias@hotmail.com>
Date: Wed, 31 Jul 2002 13:02:09 -0700


Um, I'm not a formidable .NET security expert, but I would
hazard a guess that using some form of impersonation might
work? (Experts, correct me if I'm wrong) I.e. instead of
giving John write + execute permissions, create a dummy
user account with the write + execute permissions that
John would need and then, when John is accessing the ASP
application to create a folder, have the ASP page login
and impersonate the dummy account just long enough to
create the folder and whatever files it needs to
automatically contain. Once that is complete, revert John
back to his own account which only has read permissions.

- Christopher Zacharias
  christopher_zacharias@hotmail.com

>-----Original Message-----
>Hi all!
>
>I have a web site that users can register on and then
create a subdirectory
>that will contain template.asp pages that will have some
personalized
>information. For example, John comes to the site, and
wants to register.
>Via a form, he can create a folder in c:\Inetpub\wwwroot
named John and can
>access it from www.mycompanyname.com/John . The problem
I'm having, is not
>actually creating the folder, but controling the
permissions. The user, in
>this case John, has to have write and execute permissions
as IUSER to create
>the folder in IIS, but then he can also modify the
template.asp pages in
>that folder if he were to open it in something like
FrontPage.
>
>How can I allow IUSERs to create a directory, yet still
control the security
>of the directory they created to be read-only. I know I
could manually
>create each directory, but I would like to do it in real-
time.
>
>Thanks in advance,
>Jeff
>
>jbrown@prosofttraining.com
>
>
>
>.
>



Relevant Pages

  • Re: Win XP assigns me new "user" folder - creates problem - how can I get it to use my old "
    ... Thanks John for your patience and help with this problem. ... My laptop is running Windows XP Pro. ... To determine if the profile is corrupt: ... Documents and Settings folder. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Searching File Server for User Permissions
    ... Then there is a random user that needs to have access to this folder ... we'll call him John Doe. ... of those folders in the file server will not convert over to the new ... for which JDoe has some permissions. ...
    (microsoft.public.windows.server.general)
  • Re: How to run rule against something other than Inbox with VBA?
    ... Hello Michael, I am having the same issue as John, except I am trying to do ... the sent items folder and send them to another designated folder after I have ... Dim myRules As Outlook.Rules ... Set myRules = Nothing ...
    (microsoft.public.outlook.program_vba)
  • Re: Unable to return to home page
    ... John G ... It isn't even good practice to do it with folder ... Then compress your graphics. ... it all works fine and I can navigate back to ...
    (microsoft.public.publisher.webdesign)
  • Searching File Server for User Permissions
    ... Security Group: Shipping ... Then there is a random user that needs to have access to this folder ... we'll call him John Doe. ... I'll do a search for John Doe and I should get the Shipping Folder ...
    (microsoft.public.windows.server.general)