Have any of you ever set permissions programatically on a folder aspnet
user thorugh an application.
Any help will be greatly appreciated.
Thanks. 10 1171
Hi Maximus,
See http://msdn.microsoft.com/library/de...classtopic.asp
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Maximus" <me@maximus.net > wrote in message
news:es******** ******@tk2msftn gp13.phx.gbl... Have any of you ever set permissions programatically on a folder aspnet user thorugh an application.
Any help will be greatly appreciated.
Thanks.
Kevin Spencer wrote: Hi Maximus,
See http://msdn.microsoft.com/library/de...classtopic.asp
Hi Kevin,
Thanks for the link, but my problem was i created a folder thorugh my
application and now I want to assign the ASPNET user modify permission
on this folder. How do you think I will be able to do that using
PermissionSet, the example doesnt seem to help with that, is there any
other way of doing this.
Thanks.
My apologies, Maximus. I copied the URL from the browser address window, but
it was not the URL of the page I was looking at. Here is the correct URL: http://msdn.microsoft.com/library/en...asp?frame=true
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Maximus" <me@maximus.net > wrote in message
news:#Q******** ******@TK2MSFTN GP11.phx.gbl... Kevin Spencer wrote:
Hi Maximus,
See http://msdn.microsoft.com/library/de...classtopic.asp Hi Kevin, Thanks for the link, but my problem was i created a folder thorugh my application and now I want to assign the ASPNET user modify permission on this folder. How do you think I will be able to do that using PermissionSet, the example doesnt seem to help with that, is there any other way of doing this.
Thanks.
Kevin Spencer wrote: My apologies, Maximus. I copied the URL from the browser address window, but it was not the URL of the page I was looking at. Here is the correct URL:
http://msdn.microsoft.com/library/en...asp?frame=true
Hi Kevin,
I thought for this you need to use WMI. What I was looking for an
example which I can refer to as I have been trying to use WMI the
examples have been refering to need the DACL property of the folder to
be accessed. Due to some reason when I get the Security settings, I see
only description and Return value as the properties I do not see the
DACL. I was wondering why?
Any help will be appreciated.
Thanks.
I'm a little lost here. What namespace are you referring to, and what
classes are you using? If you're asking about WMI, I can't answer, as I've
never used it. I do know that the System.Security .Permissions Namespace has
the classes you need to set permissions on files an folders. Specifically,
the FileIOPermissio n class.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Maximus" <me@maximus.net > wrote in message
news:eW******** ******@TK2MSFTN GP12.phx.gbl... Kevin Spencer wrote:
My apologies, Maximus. I copied the URL from the browser address window,
but it was not the URL of the page I was looking at. Here is the correct
URL: http://msdn.microsoft.com/library/en...asp?frame=true Hi Kevin,
I thought for this you need to use WMI. What I was looking for an example which I can refer to as I have been trying to use WMI the examples have been refering to need the DACL property of the folder to be accessed. Due to some reason when I get the Security settings, I see only description and Return value as the properties I do not see the DACL. I was wondering why?
Any help will be appreciated.
Thanks.
Kevin Spencer wrote: I'm a little lost here. What namespace are you referring to, and what classes are you using? If you're asking about WMI, I can't answer, as I've never used it. I do know that the System.Security .Permissions Namespace has the classes you need to set permissions on files an folders. Specifically, the FileIOPermissio n class.
Hi Kevin,
Do you think using FileIOPermissio n Class I will be able to change
permission settings on a folder, which I created through my application,
for the ASPNet user. If so can do you have an example? As I did not find
anyway by which I could set permission settings for any user(ASPNET in
my case).
If you could send me an example or something I will greatly appreciate it.
Thanks.
Maximus wrote: Kevin Spencer wrote:
I'm a little lost here. What namespace are you referring to, and what classes are you using? If you're asking about WMI, I can't answer, as I've never used it. I do know that the System.Security .Permissions Namespace has the classes you need to set permissions on files an folders. Specifically, the FileIOPermissio n class. Hi Kevin,
Do you think using FileIOPermissio n Class I will be able to change permission settings on a folder, which I created through my application, for the ASPNet user. If so can do you have an example? As I did not find anyway by which I could set permission settings for any user(ASPNET in my case).
If you could send me an example or something I will greatly appreciate it.
Thanks.
Hi Kevin,
Please help, I have been breaking my head for a few days now but to no
avail. I have no clue as to how I will set permission on a folder
created thorugh the appliction for aspnet user. Any example for the same
will be greatly appreciated.
Thanks.
Hi Maximus,
If you follow the link I posted to the System.Security .Permissions page
( http://msdn.microsoft.com/library/en...mSecurityPermi
ssions.asp?fram e=true), and follow the link on that page to the page about
the FileIOPermissio n class
( http://msdn.microsoft.com/library/en...msecuritypermi
ssionsfileioper missionclasstop ic.asp?frame=tr ue), there are examples right
on that page you can go by.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Maximus" <me@maximus.net > wrote in message
news:en******** ******@tk2msftn gp13.phx.gbl... Maximus wrote:
Kevin Spencer wrote:
I'm a little lost here. What namespace are you referring to, and what classes are you using? If you're asking about WMI, I can't answer, as I've never used it. I do know that the System.Security .Permissions Namespace has the classes you need to set permissions on files an folders. Specifically, the FileIOPermissio n class. Hi Kevin,
Do you think using FileIOPermissio n Class I will be able to change permission settings on a folder, which I created through my application, for the ASPNet user. If so can do you have an example? As I did not find anyway by which I could set permission settings for any user(ASPNET in my case).
If you could send me an example or something I will greatly appreciate
it. Thanks. Hi Kevin,
Please help, I have been breaking my head for a few days now but to no avail. I have no clue as to how I will set permission on a folder created thorugh the appliction for aspnet user. Any example for the same will be greatly appreciated.
Thanks.
Kevin Spencer wrote: Hi Maximus,
If you follow the link I posted to the System.Security .Permissions page (http://msdn.microsoft.com/library/en...mSecurityPermi ssions.asp?fram e=true), and follow the link on that page to the page about the FileIOPermissio n class (http://msdn.microsoft.com/library/en...msecuritypermi ssionsfileioper missionclasstop ic.asp?frame=tr ue), there are examples right on that page you can go by.
Hi kevin,
Even if I follow the link I dont see how I can specify the ASPNET user
in the FileIOPermissio n class. I dont see any function that will let me
specify for what user I can change the permission. Do you think its
possible if so can you pinpoint the function I can use?
Thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kim Lots |
last post by:
Hi
Sorry to disturb you again but i really like to know
what's the NTFS folder permissions on a "virtual directory" folder
for a public webserver iis 5.x running ASP 3.0 with an Access DB on a
w2k pro machine with anonymous access.
Fyg this is non commercial website for neighbour members in a carpool
with booking possibility. No file upload is allowed/possible/needed.
Login is manged by the ASP script
|
by: Brad H McCollum |
last post by:
I'm writing an application using VB 6.0 as the front-end GUI, and the
MSDE version of SQL Server as the back-end (it's a program for a
really small # of users --- less then 3-4).
I'm trying to determine, through the Visual Basic interface, the
permissions of each user that's using the application on his/her
machine.
For example, let's say I'm user "Michael" that's sitting down at my
machine using the app. I've written. The security...
|
by: !!! Klutzo !!! |
last post by:
I give permissions for ASPNET on a top level subdirectory.
A windows program copies a file into the subdirectory, however, my web
service cannot access the file because it does not have permissions.
Shouldn't the file automatically inherit permissions by being dropped
into that top level subdirectory?
|
by: Jozef |
last post by:
Hello,
Is there a way to change table permissions in VB Code? I can't seem to find
much that's concise in the help file. Here's the situation;
I have a table in the "data" portion of a split database. The table is a
list of values that shouldn't be accidentally changed by the user, so I've
taken the administer and delete permissions off. I'm using the regular
workgroup file, with the default Admin user name, so there is no funky...
|
by: none |
last post by:
Hello:
I had a nice php application running on my server here at home, and I
uploaded it to a shared public type server and it started to break all
over the place. It turns out that some scripts required higher
permissions that others, but I can't figure out what the difference is.
They all read from the database. Some write to the database, but not
all the ones that require higher permissions do. I don't understand
what it is about...
| |
by: MLH |
last post by:
Invalid qualifier error displays at compile time on this A97 example
from Permissions Property HELP. What's wrong with the strContainerName
assignment line? (6th line)
Sub SetDocPermissions(docUnknown As Document)
Dim strContainerName As String
' Set UserName property to valid existing group account.
docUnknown.UserName = "Marketers"
' Get value of Container property.
strContainerName = docUnknown.Container.Name
|
by: Curt K |
last post by:
We run some web services (IIS 5 and IIS 6) that communicate to a COM out of
process server, which in turn communicates to another out of process COM
server (long story). We have had lots of permissions issues getting the web
service to communicate to the COM object to the point that we use the
"administrator" account (yes, I know this is really bad). We need to tidy
this for security purposes and to run under Vista and properly set up...
|
by: jporter188 |
last post by:
Hello,
I am working on a project to manipulate XML files. All of the files,
the code, and the output are on network drives. When I run my program
I get an exception (see below). I tried giving the LocalIntranet_Zone
full permissions in the .NET Framework 2.0 Configuration msc. This had
no effect whatsoever. What do I need to do to fix this?
Thanks,
|
by: palepimp |
last post by:
Hello all,
I have searched far and wide for a solution to my issue. In short, here is the problem:
1. 3 PC's enter data into an Access 2003 database (PC's are running Vista w/ Office 2007 pro). The database has been used for a long time and we haven't upgraded it to a 2007 version database.
2. One of the PC's hosts the "master" database, the 2 others are using Replica's of "master" database. At the end of each work day, the...
|
by: DotNetNewbie |
last post by:
Hello,
in my web application, I have to create permissions for each user. So
what I am doing is that for each role (using sqlmembership in .net) I
am creating a column in the database to hold a group of permissions
which I will then do some 'bit banging' in my web application to see
if the permission is set or not.
An int is 32 bits, and a long is 64.
|
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...
| |
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |