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

Security Permission AccessMask Property

I am trying to write some code to parse file permissions, however I have run into some troubling problems
No matter what language or method used to retrieve the accessmask property, if the value is set vide the standard windows GUI the returned value does not equal what the documentation says it is for example

Here are some sample
RIGHT_GENERIC_ALL = 0x1000000
Full control when set through the GUI is = 0x1f01f
Therefore RIGHT_GENERIC_ALL does not equal FullContro
As an interesting point the creator owner special group always seems to get the apparent correct setting 0x1000000

The same is true for the other standard types of permissions too
Any information you can provide much appreciated

P.S. I am starting to think I may need to write code to break the accessmask down into its individual chunks to list the portions that make up the overall permission if anyone else has done this already any pointers would be great.
Nov 22 '05 #1
2 3369
Inline ***

Willy.
"Jason" <an*******@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
I am trying to write some code to parse file permissions, however I have
run into some troubling problems.
No matter what language or method used to retrieve the accessmask
property, if the value is set vide the standard windows GUI the returned
value does not equal what the documentation says it is for example:

Here are some samples
RIGHT_GENERIC_ALL = 0x10000000
Full control when set through the GUI is = 0x1f01ff
Therefore RIGHT_GENERIC_ALL does not equal FullControl *** No, because they aren't equal. As an interesting point the creator owner special group always seems to
get the apparent correct setting 0x10000000

The same is true for the other standard types of permissions too.
Any information you can provide much appreciated.
*** The only valid source is the winnt.h file, search for ACCESS_MASK and
access rights for files
P.S. I am starting to think I may need to write code to break the
accessmask down into its individual chunks to list the portions that make
up the overall permission if anyone else has done this already any
pointers would be great.


*** Declare an enum with the access mask as bit fields.

Willy.
Nov 22 '05 #2
Inline ***

Willy.
"Jason" <an*******@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
I am trying to write some code to parse file permissions, however I have
run into some troubling problems.
No matter what language or method used to retrieve the accessmask
property, if the value is set vide the standard windows GUI the returned
value does not equal what the documentation says it is for example:

Here are some samples
RIGHT_GENERIC_ALL = 0x10000000
Full control when set through the GUI is = 0x1f01ff
Therefore RIGHT_GENERIC_ALL does not equal FullControl *** No, because they aren't equal. As an interesting point the creator owner special group always seems to
get the apparent correct setting 0x10000000

The same is true for the other standard types of permissions too.
Any information you can provide much appreciated.
*** The only valid source is the winnt.h file, search for ACCESS_MASK and
access rights for files
P.S. I am starting to think I may need to write code to break the
accessmask down into its individual chunks to list the portions that make
up the overall permission if anyone else has done this already any
pointers would be great.


*** Declare an enum with the access mask as bit fields.

Willy.
Nov 22 '05 #3

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

Similar topics

2
by: Jason | last post by:
I am trying to write some code to parse file permissions, however I have run into some troubling problems No matter what language or method used to retrieve the accessmask property, if the value is...
6
by: Olaf Baeyens | last post by:
Can someone out there point me to a URL or other reference how to use these security stuff in .NET? I know everything can be found online on the msdn but since I am new to this security stuff, I...
1
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Before we start with our sample app we need to view the security configuration files on the machine. You will find them under <drive>\WInNT\Microsoft.NET\FrameWork\<version>\Config ...
0
by: | last post by:
I an attempting to serialize a custom exception class that is derived from System.Exception during runtime. I am getting a the following security permission exception when the XmlSerializer is...
1
by: Danko Greiner | last post by:
Thanx Willy, this was very helpful. But i also need (and want to know) how to do this from code. Can you plase give me right topic in MSDN? is there good example? Thanx p.s. this is...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its trust level. If the CLS trusts the code enough to...
0
by: Jeremy Chapman | last post by:
In an asp.net page, I'm creating an exchange account. I've created the account, and tied it to a primary NT account. Now I'm trying to assign permissions to it but I get an error of "The...
16
by: Marina | last post by:
Hi, I am trying to find the minimum security settings to allow a windows control embedded in IE have full trust. If I give the entire Intranet zone full trust, this works. However, this is...
1
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is...
0
by: ChrisWoodruff | last post by:
I have a C++ function in a COM object that I am trying to implement in VB.NET (the functionality, NOT the COM object, I want to remove the requirement for the COM DLL) I am an experienced VB...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
tracyyun
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...
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,...

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.