changing permissions on folders in web setup project created in VS

From: gzinger (gzinger_at_No_Spam_zbitinc.com)
Date: 08/12/04


Date: Wed, 11 Aug 2004 18:09:02 -0700

We have a software that is built as an ASP.NET web site. Some of the
directories the web is using, should be made writable. One directory should
be made writable only temporarily and then assume its original permissions.
So, the question is how to do it inside setup file?

What we tried to do is to build setup project in Visual Studio and then used
Orca tool (part of MS Install SDK) to add entries into LockPermissions table.
So, we give "everyone" group the "full control" permission on the needed
directories. The problems with this approach are:

        1. Everyone and full control is not very secure option. We would rather
give only "read/write" permissions to the user running ASP.NET application
ONLY.

        2. The original permissions on the folders (inherited from the parent
folder) are replaced and there is no way to go back.

        3. We can not automate the build of setup program because we need to always
run this additional step of importing tables.

So, sub-questions to my main question are:

        1. Is there better approach altogether to complete our task? Perhaps use
wmi? We need some direction here and samples if possible.

        2. How to find out which account is running the ASP.NET application (web
site or virtual root) that we just installed, so that we could give right to
that account only.

        3. How can we get original permissions of a folder and than revert to them
as some later point?

        4. Perhaps new Visual Studio 2005 (Whidbey) could help? Would it support
application that is built using .NET 1.1?

Thank you very much.



Relevant Pages

  • changing permissions on folders in web setup project created in VS
    ... We have a software that is built as an ASP.NET web site. ... be made writable only temporarily and then assume its original permissions. ... Orca tool (part of MS Install SDK) to add entries into LockPermissions table. ...
    (microsoft.public.vsnet.general)
  • Re: Permissions for a Site -> Only x user can access to a site
    ... Sites can have specific permissions. ... Approve - Can edit and approve pages, list items, and documents. ... View Usage Data - View reports on Web site usage. ... Browse User Information - View information about users of the Web ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Permissions for a Site -> Only x user can access to a site
    ... "Mike Walsh" wrote: ... Sites can have specific permissions. ... Approve - Can edit and approve pages, list items, and documents. ... View Usage Data - View reports on Web site usage. ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Permissions for a Site -> Only x user can access to a site
    ... Is possible to assign permissions to a user or group users in order to ... Approve - Can edit and approve pages, list items, and documents. ... View Usage Data - View reports on Web site usage. ... Browse User Information - View information about users of the Web ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Permissions for a Site -> Only x user can access to a site
    ... Sites can have specific permissions. ... Approve - Can edit and approve pages, list items, and documents. ... View Usage Data - View reports on Web site usage. ... Browse User Information - View information about users of the Web ...
    (microsoft.public.sharepoint.portalserver)