473,769 Members | 4,201 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting permissions for aspnet user

Hi,

Does anybody know how I can programatically set modify permissions on a
folder for the aspnet user.

Any help will be appreciated.

Thanks.

Nov 18 '05 #1
2 1788
I would think that this would be impossible to do from an asp.net page that
couldn't all ready access the folder.

Imagine what your inbox would look like if pages on the web could give
themselves permissions to objects on your system they are not supposed to
access. Kinda mutes the whole point of security, no?

However if you are working on an intranet and had the page impersonate an
administrator, you "might" be able to set permissions for other, lesser
priveleged accounts.
"Maximus" <me@maximus.net > wrote in message
news:O9******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

Does anybody know how I can programatically set modify permissions on a
folder for the aspnet user.

Any help will be appreciated.

Thanks.

Nov 18 '05 #2
Hi Muckey,

I do understand that wont be able to that through asp.net page.
I am sorry that I did not mention that I was looking to change the
permission through an application installed on my machine. Through the
application I create a folder for which I want to grant modify
permission for aspnet user and then I would copy all the aspx pages in
that folder.

Is there any way I can do that. Any help will be apprecited.

Thanks.





Muckey wrote:
I would think that this would be impossible to do from an asp.net page that
couldn't all ready access the folder.

Imagine what your inbox would look like if pages on the web could give
themselves permissions to objects on your system they are not supposed to
access. Kinda mutes the whole point of security, no?

However if you are working on an intranet and had the page impersonate an
administrator, you "might" be able to set permissions for other, lesser
priveleged accounts.
"Maximus" <me@maximus.net > wrote in message
news:O9******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

Does anybody know how I can programatically set modify permissions on a
folder for the aspnet user.

Any help will be appreciated.

Thanks.



Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
10904
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent the wheel, right? Everything so far is working well with the Active Directory. The problem I am having is with adding File Permissions to a directory. I am currently using some code courtesy of "Willy Denoyette "
1
1461
by: Brian | last post by:
I have a complex problem that needs a lot of background explanation before I can ask questions, so here goes.... Our system consists of two servers. -WebUI server - Windows 2000 - runs asp.net pages, and handles http requests. All requests go through this frontend public server. Business objects are then called, which execute stored procs, etc on the WebSQL server. -WebSQL server - Windows 2000 - SQLServer2000 database and file...
7
960
by: JerryW | last post by:
I just reinstalled .NET 2003 (after repeated attempts to get ASP.NET Web Applications to work). I first did a complete uninstall of .NET 2003, .NET Framework 1.1, and IIS. I also completely deleted c:\inetpub\wwwroot and rebooted before reinstalling. I created a new virtual directory from within IIS (e.g. MyWebTest). Then I tried to create a new Visual C# ASP.NET Web Application pointing to the location http://localhost/MyWebTest. I get...
4
3384
by: Dave Kolb | last post by:
If I make ASPNET a member of the admins group it can launch my COM+ object but I do not want to do that. What permissions do I need to set for the lowly ASPNET user so that it can launch a COM+ object. I tried playing with COM+ roles in the MMC but not with any luck. My COM+ object itself does not do any role checking. Thanks, Dave
10
1171
by: Maximus | last post by:
Have any of you ever set permissions programatically on a folder aspnet user thorugh an application. Any help will be greatly appreciated. Thanks.
1
5697
by: James | last post by:
What folders should the ASPNET user have permissions for, & what should they be? I keep getting 'Access Denied' or 'Server Access Denied' errors. I have given the ASPNET user Read & Execute Permissions to my wwwroot folder, & the application lies within a 'NET' sub folder. However, I get an "Access Denied to 'C:\Inetpub'". Is there a definitive list of the folders I need to give this user
2
1259
by: dhnriverside | last post by:
Hi I've got a web app that I've installed on a client computer. Basically it's an intranet, and has a section where staff can upload media files for all to see, so theyre all in a conveinient place. Problem is, they want to store the media files on a diff directory, one that is OUTSIDE of the website itself. They actually want a seperate drive. I've created a virtual directory in IIS to point to that, and files are
2
1352
by: Joergen Bech | last post by:
Trying to write an xml file from within a Session. Works fine if I do it in the Application_Start event of Global.asax, but not in the Page_Load event of an aspx page. If I give "Everyone" write permissions to the folder/file, everything works fine (on my local development machine), but this is not an option on the production server, which is outside of my control. This also means that I cannot add new accounts with the required...
8
2266
by: David Lozzi | last post by:
Howdy, I have a user control that is a report to display data. On the page the control is inserted in, I have filter options to filter the report. When I try to do something like this, nothing happens. dim filt as string ... build filter string... UserControl.ReportFilter = filt
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9415
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9978
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9848
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3947
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3551
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.