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

Removing NTFS Folder Permissions Using .NET

Ram
Hey,
I'v managed to find a way of adding NTFS permissions to a certain folder,
But the problem is, the folder has a couple of inherited permissions which I
want to delete.
How can I remove the folder's NTFS permissions WITHOUT using WMI or special
XP features?
Thanks ahead!

--Ram
Nov 20 '05 #1
4 4251
WMI???? I thought you can just right click any folders on the Windows
Explorer click the Security tab and click the Advance button???

"Ram" <ni***@bezeqint.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey,
I'v managed to find a way of adding NTFS permissions to a certain folder,
But the problem is, the folder has a couple of inherited permissions which I want to delete.
How can I remove the folder's NTFS permissions WITHOUT using WMI or special XP features?
Thanks ahead!

--Ram

Nov 20 '05 #2
Ram
LOLZ!
I know how to do it in Windows, but how can I do it using .NET?

--Ram
"chanmmn" <ch*****@hotmail.com> wrote in message
news:uP*************@TK2MSFTNGP12.phx.gbl...
WMI???? I thought you can just right click any folders on the Windows
Explorer click the Security tab and click the Advance button???

"Ram" <ni***@bezeqint.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey,
I'v managed to find a way of adding NTFS permissions to a certain folder, But the problem is, the folder has a couple of inherited permissions
which I
want to delete.
How can I remove the folder's NTFS permissions WITHOUT using WMI or

special
XP features?
Thanks ahead!

--Ram


Nov 20 '05 #3
ISK
just a few pointers..
you could use cacls.exe thats on xp/2000 which will allow you to set/reset
permissions on folders/files. check the help on the command for usage..
in .net, you could use the wrapper classes for wmi provided by
system.management ..i'm not sure if this is what you meant when you
mentioned 'without using wmi'...
"Ram" wrote:
LOLZ!
I know how to do it in Windows, but how can I do it using .NET?

--Ram
"chanmmn" <ch*****@hotmail.com> wrote in message
news:uP*************@TK2MSFTNGP12.phx.gbl...
WMI???? I thought you can just right click any folders on the Windows
Explorer click the Security tab and click the Advance button???

"Ram" <ni***@bezeqint.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey,
I'v managed to find a way of adding NTFS permissions to a certain folder, But the problem is, the folder has a couple of inherited permissions

which
I
want to delete.
How can I remove the folder's NTFS permissions WITHOUT using WMI or

special
XP features?
Thanks ahead!

--Ram



Nov 20 '05 #4
Ram
Hey ISK,
Thanks for your reply!
I know of Cacls.exe and of XCacls.exe, but I'm looking for a way of doing so
from .NET without shelling outern exec's...
About the WMI, - I cant use WMI because I dont have WMI on my servers, so
the system.management solution's out of question...
Thanks again,

--Ram
"ISK" <IS*@discussions.microsoft.com> wrote in message
news:F3**********************************@microsof t.com...
just a few pointers..
you could use cacls.exe thats on xp/2000 which will allow you to set/reset
permissions on folders/files. check the help on the command for usage..
in .net, you could use the wrapper classes for wmi provided by
system.management ..i'm not sure if this is what you meant when you
mentioned 'without using wmi'...
"Ram" wrote:
LOLZ!
I know how to do it in Windows, but how can I do it using .NET?

--Ram
"chanmmn" <ch*****@hotmail.com> wrote in message
news:uP*************@TK2MSFTNGP12.phx.gbl...
WMI???? I thought you can just right click any folders on the Windows
Explorer click the Security tab and click the Advance button???

"Ram" <ni***@bezeqint.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
> Hey,
> I'v managed to find a way of adding NTFS permissions to a certain

folder,
> But the problem is, the folder has a couple of inherited permissions

which
I
> want to delete.
> How can I remove the folder's NTFS permissions WITHOUT using WMI or
special
> XP features?
> Thanks ahead!
>
> --Ram
>
>


Nov 20 '05 #5

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

Similar topics

3
by: Kim Lots | last post by:
Hi folks Let say I have one virtual directory (IIS 5.x) pointing to a folder on my G: drive what would be the minimum NTFS permissions (w2k pro) for users & groups on this folder considering I'm...
0
by: HitSkiper | last post by:
I am getting the error "The security ID structure is invalid." When running this code. Sub SetPermissions(ByRef vPath As String, ByVal UserName As String) Dim objADsSec As ADsSecurity Dim...
1
by: BJS | last post by:
Hi there. I have been successfully running ASP on a W2K IIS5.0 server using Anon Access enabled, but would like to be able to restrict access to a particular folder containing some ASP content...
2
by: Ram | last post by:
Hey, I'v managed to find a way of adding NTFS permissions to a certain folder, But the problem is, the folder has a couple of inherited permissions which I want to delete. How can I remove the...
1
by: Sharon | last post by:
Hi all. How can i change a file NTFS permissions? 10x, Sharon.
0
by: VP | last post by:
Hi there, well i am stuck on a problem with regards to obtaining security permissions on folders. At the moment I have created a simple treeview example which shows all sub-directories in a tree...
1
by: Mohamed Zaki | last post by:
Dear All, I'm facing a strange problem, I've an ASP.NET web application that contains an admin folder, in this folder the access should be restricted to specific users, as i'm using windows...
4
by: Joey | last post by:
Hey, How can I add/edit/delete Folder NTFS permissions in .NET? I have a Win2K Box, and WMI is not installed on my servers Thanks ahead! -- Joey
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.