473,386 Members | 1,699 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,386 software developers and data experts.

Using code to set permissions

I have a classic ASP app that's on the company Intranet. I'm in the early
planning stages of re-doing it in ASP.NET, using VB 2003.

One feature I would like to implement would have the code do the work of the
IT department, by adding or removing permissions to a particular folder on
another server on the network for a user who is chosen by one of a few
people in the company. Is this possible? Can someone point me in a
direction, or give me the name of the object so I can start to go down this
road?

Nov 19 '05 #1
7 1128
I'd seriously consider using .NET 2.0. Managing permissions and audit
rules is easier with the addition of the System.Security.AccessControl
namespace. There is some sample code for the DirectorySecurity class
here: http://msdn2.microsoft.com/en-us/library/23c9e959

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 4 Oct 2005 08:58:17 -0500, "middletree"
<mi********@verywarmmail.com> wrote:
I have a classic ASP app that's on the company Intranet. I'm in the early
planning stages of re-doing it in ASP.NET, using VB 2003.

One feature I would like to implement would have the code do the work of the
IT department, by adding or removing permissions to a particular folder on
another server on the network for a user who is chosen by one of a few
people in the company. Is this possible? Can someone point me in a
direction, or give me the name of the object so I can start to go down this
road?


Nov 19 '05 #2
OK, thanks.

Basic question: what does ".NET 2.0" mean, exactly? Is that the same as VB
2003, which I am using? Or is it going to be available with Studio 2005
which comes out next month?

Or is there no direct connection between Studio version and .NET version?
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:is********************************@4ax.com...
I'd seriously consider using .NET 2.0. Managing permissions and audit
rules is easier with the addition of the System.Security.AccessControl
namespace. There is some sample code for the DirectorySecurity class
here: http://msdn2.microsoft.com/en-us/library/23c9e959

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 4 Oct 2005 08:58:17 -0500, "middletree"
<mi********@verywarmmail.com> wrote:
I have a classic ASP app that's on the company Intranet. I'm in the early
planning stages of re-doing it in ASP.NET, using VB 2003.

One feature I would like to implement would have the code do the work of theIT department, by adding or removing permissions to a particular folder onanother server on the network for a user who is chosen by one of a few
people in the company. Is this possible? Can someone point me in a
direction, or give me the name of the object so I can start to go down thisroad?

Nov 19 '05 #3
re:
Basic question: what does ".NET 2.0" mean, exactly?
Is that the same as VB 2003, which I am using?
No, it is not.

VB 2003 uses the .NET Framework 1.1 ( and ASP.NET 1.1 )
VB 2005 uses the .NET Framework 2.0 ( and ASP.NET 2.0 )

re: Or is there no direct connection between Studio version and .NET version?
There is a connection.

The ASP.NET version and the VS.NET version differ only in the initial number.

For example, the latest beta version of the .NET Framework is 2.0.50727.42.
The latest beta version of VS.NET is 8.0.50727.42


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"middletree" <mi********@verywarmmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... OK, thanks.

Basic question: what does ".NET 2.0" mean, exactly? Is that the same as VB
2003, which I am using? Or is it going to be available with Studio 2005
which comes out next month?

Or is there no direct connection between Studio version and .NET version?
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:is********************************@4ax.com...
I'd seriously consider using .NET 2.0. Managing permissions and audit
rules is easier with the addition of the System.Security.AccessControl
namespace. There is some sample code for the DirectorySecurity class
here: http://msdn2.microsoft.com/en-us/library/23c9e959

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 4 Oct 2005 08:58:17 -0500, "middletree"
<mi********@verywarmmail.com> wrote:
>I have a classic ASP app that's on the company Intranet. I'm in the early
>planning stages of re-doing it in ASP.NET, using VB 2003.
>
>One feature I would like to implement would have the code do the work of the >IT department, by adding or removing permissions to a particular folder on >another server on the network for a user who is chosen by one of a few
>people in the company. Is this possible? Can someone point me in a
>direction, or give me the name of the object so I can start to go down this >road?
>
>



Nov 19 '05 #4
Ok, so just to make sure I'm clear: in order to implement the instructions
in the article, I'd need to use VB.NET 2005, correct?
Nov 19 '05 #5
Yes, that is true. 2005 is not a released product as yet, , but should
be out in early November. You can download a beta version of the
Express versions here: http://lab.msdn.microsoft.com/express/

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 4 Oct 2005 13:13:08 -0500, "middletree"
<mi********@verywarmmail.com> wrote:
Ok, so just to make sure I'm clear: in order to implement the instructions
in the article, I'd need to use VB.NET 2005, correct?


Nov 19 '05 #6
re:
in order to implement the instructions
in the article, I'd need to use VB.NET 2005, correct?
Yes.

msdn2.microsoft.com is the online source for .Net Framework
2.0 documentation, and VB.NET 2005 uses the .Net Framework 2.0.

Moreover, the DirectorySecurity Class is new in the
..NET Framework version 2.0, and does not exist in
the .Net Framework 1.1, nor in VB.NET 2003.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"middletree" <mi********@verywarmmail.com> wrote in message
news:el****************@TK2MSFTNGP10.phx.gbl... Ok, so just to make sure I'm clear: in order to implement the instructions
in the article, I'd need to use VB.NET 2005, correct?

Nov 19 '05 #7
Thanks both of you.
Nov 19 '05 #8

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

Similar topics

4
by: Kartik | last post by:
Hi, I have an ASP.NET application using VB.NET.I am sending a DOS command to a machine on the network to print a file. This is achieved using xp_cmdshell Dim str As String = "xp_cmdshell...
14
by: Mark C. | last post by:
I'm trying to call a batch file that I've built using the FileSystemObject and CreateObject("Wscript.Shell"), oShell.Run... in an asp script. Naturally, I can get the script to work from a command...
0
by: Praveen | last post by:
Hello. I am writing some code that accepts a DFS Link and Username and grants that User permissions to the physical directory that the DFS Link corresponds to. I am using the System.Management...
9
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...
4
by: tsutton | last post by:
I developed my application on my PC using a referenced Control component (which was analysed by Aximp.exe and give me a dll). It runs fine on my PC but when I place it on the network and run it...
8
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is...
3
by: Katie | last post by:
Hi, I need a code versioning system and was considering CVS. I would like some feedback if you are using CVS (wincvs or tortoise etc) and if you are satisfied with it. One thing i havent been...
5
by: Lambuz | last post by:
First of all, is it possible usign .NET remoting feature inside a .NET applet loaded into a tag object inside an HTML page ? <OBJECT id="myID" height="150" width="300"...
1
by: Screenbert | last post by:
After finding nothing anywhere in google I am posting this so everyone can benefit by it. The formating is not pretty since I copied it from my word document, but you should benefit by it. ...
0
by: screenbert | last post by:
Managing DHCP Servers using C# They said it was impossible. It couldn't be done. But you can in fact manage DHCP servers using C#. This includes creating and deleting Scopes, SuperScopes,...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.