473,382 Members | 1,665 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

permissions

Have any of you ever set permissions programatically on a folder aspnet
user thorugh an application.

Any help will be greatly appreciated.

Thanks.

Nov 18 '05 #1
10 1146
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**************@tk2msftngp13.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.

Nov 18 '05 #2
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.
Nov 18 '05 #3
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**************@TK2MSFTNGP11.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.

Nov 18 '05 #4
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.

Nov 18 '05 #5
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 FileIOPermission 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**************@TK2MSFTNGP12.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.

Nov 18 '05 #6
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 FileIOPermission class.

Hi Kevin,

Do you think using FileIOPermission 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.

Nov 18 '05 #7
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 FileIOPermission class.

Hi Kevin,

Do you think using FileIOPermission 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.

Nov 18 '05 #8
Hi Maximus,

If you follow the link I posted to the System.Security.Permissions page
(http://msdn.microsoft.com/library/en...mSecurityPermi
ssions.asp?frame=true), and follow the link on that page to the page about
the FileIOPermission class
(http://msdn.microsoft.com/library/en...msecuritypermi
ssionsfileiopermissionclasstopic.asp?frame=true), 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**************@tk2msftngp13.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 FileIOPermission class.

Hi Kevin,

Do you think using FileIOPermission 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.

Nov 18 '05 #9
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?frame=true), and follow the link on that page to the page about
the FileIOPermission class
(http://msdn.microsoft.com/library/en...msecuritypermi
ssionsfileiopermissionclasstopic.asp?frame=true), 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 FileIOPermission 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.

Nov 18 '05 #10
Okay, the FileIOPermission class sets permission for the code being run. If
you want to set Permission for a specific user, use the PrincipalPermission
class.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:OL**************@tk2msftngp13.phx.gbl...
Hi Maximus,

If you follow the link I posted to the System.Security.Permissions page
(http://msdn.microsoft.com/library/en...mSecurityPermi ssions.asp?frame=true), and follow the link on that page to the page about
the FileIOPermission class
(http://msdn.microsoft.com/library/en...msecuritypermi ssionsfileiopermissionclasstopic.asp?frame=true), 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**************@tk2msftngp13.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 FileIOPermission class.
>
Hi Kevin,

Do you think using FileIOPermission 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.


Nov 18 '05 #11

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

Similar topics

7
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...
1
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...
6
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...
2
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...
7
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...
13
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...
0
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...
8
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...
3
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...
6
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.