changing permissions on folders in web setup project created in VS
From: gzinger (gzinger_at_No_Spam_zbitinc.com)
Date: 08/12/04
- Next message: Damon: "Re: Macro Problem - HTML Editor Switching"
- Previous message: Andre W B Furtado: "problems with UDDI Web service publishing"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Damon: "Re: Macro Problem - HTML Editor Switching"
- Previous message: Andre W B Furtado: "problems with UDDI Web service publishing"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|