Access Deined
-
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
-
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
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.
-
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
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.