Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7655305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:28:53+00:00 2026-05-31T12:28:53+00:00

I’ve written an application that examines all of the file system permissions on a

  • 0

I’ve written an application that examines all of the file system permissions on a directory.

A directory has a number of access rules (of type FileSystemAccessRule).

Each access rule has a property FileSystemRights, which is a flag enumeration.

When running this, I keep encountering a FileSystemRights value of 268435456 (which comes to 0x10000000 in hexadecimal).

This value just doesn’t appear in enumeration! It’s actually higher than the highest single flag value (Synchronize, having a value of 0x100000).

Does anyone know what this is?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T12:28:54+00:00Added an answer on May 31, 2026 at 12:28 pm

    See http://cjwdev.wordpress.com/2011/06/28/permissions-not-included-in-net-accessrule-filesystemrights-enum/

    From that page:

    Using .NET you may think that determining which permissions are
    assigned to a directory/file should be quite easy, as there is a
    FileSystemRights Enum defined that seems to contain every possible
    permission that a file/directory can have and calling
    AccessRule.FileSystemRights returns a combination of these values.
    However, you will soon come across some permissions where the value in
    this property does not match any of the values in the FileSystemRights
    Enum (I do wish they wouldn’t name some properties with the same name
    as a Type but hey).

    The end result of this is that for some files/directories you simply
    cannot determine which permissions are assigned to them. If you do
    AccessRule.FileSystemRights.ToString then for these values all you see
    is a number rather than a description (e.g Modify, Delete, FullControl
    etc). Common numbers you might see are:

    -1610612736, –536805376, and 268435456

    To work out what these permissions actually are, you need to look at
    which bits are set when you treat that number as 32 separate bits
    rather than as an Integer (as Integers are 32 bits long), and compare
    them to this diagram:
    http://msdn.microsoft.com/en-us/library/aa374896(v=vs.85).aspx

    So for example, -1610612736 has the first bit and the third bit set,
    which means it is GENERIC_READ combined with GENERIC_EXECUTE. So now
    you can convert these generic permissions into the specific file
    system permissions that they correspond to.

    You can see which permissions each generic permission maps to here:
    http://msdn.microsoft.com/en-us/library/aa364399.aspx. Just be aware
    that STANDARD_RIGHTS_READ, STANDARD_RIGHTS_EXECUTE and
    STANDARD_RIGHTS_WRITE are all the same thing (no idea why, seems
    strange to me) and actually all equal the
    FileSystemRights.ReadPermissions value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.