G
Guest
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.
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.