473,473 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Getting the Access Permissions for a specific SID on a File / folder

HI all,

How do I go about getting the permmisions of a file.

I have been able to get a list of access control rules and tell if they are
restricting or permiting a permmision but I cant tell which role / right
they are refering to:

I can get this type information by using the fileSystemSecurity object and
pointing it to a file or folder:
---------------------------------
Administrator, allow, inhertited
Users, allow, inhereted
----------------------------------

But what I am aiming for is

---------------------------------
Administrator, allow Full Control, inhertited
Users, allow, read + Modify, inhereted
----------------------------------

I have looked through the classes in the security name space but I am not
sure which class I need to do this or if the class I am using will work.

Any help would be very welcome or even any external refrences.

By the way I am using VB.Net and the 2.0 framework.

I have posted this in the dotnet.security group as well. as it spans both vb
and security.

Regards,

Mike
Jul 18 '06 #1
1 1269
Hi all,

This question has been delt with in the "DotNet.Security" group

I had posted it on two groups.

Thanks everyone

Mike.

"Mike Spike" <Mi**@melted-Cpu-co.ukwrote in message
news:uO**************@TK2MSFTNGP03.phx.gbl...
HI all,

How do I go about getting the permmisions of a file.

I have been able to get a list of access control rules and tell if they
are
restricting or permiting a permmision but I cant tell which role / right
they are refering to:

I can get this type information by using the fileSystemSecurity object and
pointing it to a file or folder:
---------------------------------
Administrator, allow, inhertited
Users, allow, inhereted
----------------------------------

But what I am aiming for is

---------------------------------
Administrator, allow Full Control, inhertited
Users, allow, read + Modify, inhereted
----------------------------------

I have looked through the classes in the security name space but I am not
sure which class I need to do this or if the class I am using will work.

Any help would be very welcome or even any external refrences.

By the way I am using VB.Net and the 2.0 framework.

I have posted this in the dotnet.security group as well. as it spans both
vb and security.

Regards,

Mike


Jul 19 '06 #2

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

Similar topics

1
by: Jody Gelowitz | last post by:
We are having an issue in that when trying to read a file that is on Server2 from Server1 (through our ASP.NET project), we receive the error: Access to the path "\\Server2\MyShare\MyFile.tif" is...
3
by: serge calderara | last post by:
Dear all, How to configure in config file, the fact that all users get access to the root web folder but only some of them to a restricted forlder Any sample ? thnaks for your help regards...
16
by: JonnyD | last post by:
I am working on a project to build a reporting web app from an exsiting database that is controled by a local application. The application that has control over the database creates a lock file to...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
6
by: Chris | last post by:
Ok, I have a vb.net application that connects to a network file share. The vb.net application bases certain functions (whether or not the user can or can't update for example) by polling the...
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
Pittaman
by: Pittaman | last post by:
Hello, I've searched the net (and this site in particular) but haven't found anything useful yet. I guess this could be a .NET question too, but I believe it's a windows permissions question in the...
6
by: fyitang | last post by:
hi guys, here is the sample: string strFileFullName = ""; try { FileInfo currentFile = GetOneFile("some directory"); strFileFullName = currentFile.FullName; // do someting...
3
by: sandromani | last post by:
Hello, I am working at a webbased file browser, where users will be able to access, rename, delete, etc files and folders. My question is, what is the best way to handle permissions /...
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...
1
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...
0
agi2029
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,...
1
isladogs
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...
0
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...
0
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...

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.