Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Access Deined

Access Deined

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sarfaraznawaz
    wrote on last edited by
    #1

    Hi, How can i set the file or folder as access denied in both NTFS and FAT so that no one can get access to that particular file or folder .... not manually am looking to do it through programming .. Regards Sarfaraz

    J E 2 Replies Last reply
    0
    • S sarfaraznawaz

      Hi, How can i set the file or folder as access denied in both NTFS and FAT so that no one can get access to that particular file or folder .... not manually am looking to do it through programming .. Regards Sarfaraz

      J Offline
      J Offline
      Jochen Arndt
      wrote on last edited by
      #2

      You can't. All you can do is using encryption. However, with the requirement 'no one', just delete the files or folders. To know why, you should read about NTFS permissions (e.g. How it works: NTFS permissions[^] and How it works: NTFS permissions, part 2[^]). Because FAT supports only the basic file attributes (read only, system, hidden) and no user level access permissions, everybody can read files and folders stored on FAT drives.

      1 Reply Last reply
      0
      • S sarfaraznawaz

        Hi, How can i set the file or folder as access denied in both NTFS and FAT so that no one can get access to that particular file or folder .... not manually am looking to do it through programming .. Regards Sarfaraz

        E Offline
        E Offline
        Erudite_Eric
        wrote on last edited by
        #3

        Create a file system filter driver and when you get a file open for that file return access denied. This is how all security and lock down products work. (You can also switch on the SID of the caller allowing it for some members or groups.) --edit-- Oh look, my sad one voting stalker has turned up. Really, do you think my solutuion is wrong? (Now remembner I have worked in the Windows kernel for 16 years and written security software. What do you klnow about the subjet?) --edit2-- Yep, as I thought, the one voter knows nothing about the subject.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups