ntfs

Checking folder/file ntfs permissions using python

As the question title might suggest, I would very much like to know of the way to check the ntfs permissions of the given file or folder (hint: those are the ones you see in the "security" tab). Basically, what I need is to take a path to a file or directory (on a local machine, or, preferrably, on a share on a remote machine) and get th...

A reliable way to determine if ntfs permissions were inherited

Hello, I have a somewhat obscure question here. What I need: To determine if the permissions (or, strictly speaking, a specific ACE of a DACL) of a file/folder was inherited. How I tried to solve this: using winapi bindings for python (win32security module, to be precise). Here is the stripped down version, that does just that, - it s...

NTFS (Direct) Reader for Linux

I managed to damage my NTFS partition pretty well (Details*; I don't think its extremely relevant but it might be.) and was wondering if there is any linux tool that can read an invalidly partitioned harddrive. In particular, Active@ NTFS Reader does exactly what I need; it seems to trust less of what the file system is telling it and fr...

Finding the Recycle Bin on a local NTFS drive

I'm trying to write some simple code that will return the directory for the recycle bin on a local drive. Seems like it would be simple -- should be a thousand answers on Google. Haven't found one yet :( I HAVE found that FAT and NTFS drives have different base names (RECYCLED and RECYCLER). I've found that 'the' recycle bin is a vir...

how to Write a VB script to extract security group data from NTFS permissions by server and nested groups in Active Directory.

i am new to Active directory but i knew vbscript, how to write an vbscript in AD to extract data from NTFS permission by server and from nested group from AD, i need just an outline how to proceed, if solution are given in code bases, it fine for the beginners like me. please post as soon as possible ...

.net durable resource manager for transactional filesystem access

I'm trying to wrap my head around the use of the System.Transactions namespace in C#. I've found some documentation on MSDN regarding using resource managers, but it only covers volatile, in-memory resource managers in any detail (like Transactional ). I'm basically looking for something that I can use inside of a TransactionScope, just...

Is there an API to set a NTFS ACL only on a particular folder without flowing permissions down?

In my environment, I have several projects that involve running NTFS ACL audit reports and various ACL cleanup activities on a number of file servers. There are two main reasons why I cannot perform these activities locally on the servers: 1) I do not have local access to the servers as they are actually owned and administered by anothe...

Finding and deleting bad symbolic links in windows

Is there any simple way to find broken ntfs symbolic links in windows and delete them? (other than manual search and destroy) I'm in this mess because of windows home server's inability to upgrade without removing disks :/ and the files are scattered randomly on a bunch of disks (but the structure is intact and mirrored on all disks) ...

Windows Server 2008 - change security settings for multiple files at once

On Windows Server 2008, is there an easy way to modify security permissions for multiple files at once (as with Windows Server 2003)? Right-click - properties does not provide a "Security" tab if more than one file/directory is selected (i.e. ctrl-click multiple files). As well, short of making registry changes, is there a way to edit f...

how to remove NTFS security from a folder ?

how to remove NTFS security from a folder ? ...

How to copy a hard disk partition?

Hii I wanna copy an NTFs partition to another partition of same type and same size.And I tried with windows function Copyfile() and it worked but slow speed is a problem.Then I did with readfile() and WriteFile() instead of Copyfile() again speed is a problem. How can I get a better speed...?? I did the same operation in kernel mode a...

Getting the cluster size of a hard drive (through code)

I need to find the cluster size of the users hard drive, through C or C++. The hard drive uses NTFS (though I'd appreciate knowing how it's done on other file systems as well). I guess what I need is some combination of win32 API calls, but I don't know which. For instance, typing "fsutil fsinfo ntfsinfo c:" in the windows console give...

Why does flock occasionally take a long time on Windows / NTFS?

I use the file system to create a application wide persistent singleton (application does not use a database). Occasionally a page will take 1-2 minutes to load and I have narrowed the problem down to the use of flock in the function that gets an instance of the singleton. Here is a simplified version of the code: (edit: left out the m...

Sharing/Security File/Folder Permissions

I'm trying to run an executable (.exe) from LAN without allowing users access to the contents of the LAN folder itself. e.g. 1) User clicks on a link in their email to an executable at a folder path e.g. I:\Folder A\setup.exe 2) On clicking the link, the installer runs 3) If user tries to access the folder i.e. I:\Folder A\, they are ...

how indexing happens on a NTFS drive

how does the computer retrive a particular entry in the MFT table for a file or directory? I read through many documents which describe the structure of NTFS and MFT, but i fail to understand say i have a file in E:\documents\test.txt, how can i identify it's entry in the MFT index. Is it sequential? ...

Create NTFS junction point in Python

Is there a way to create an NTFS junction point in Python? I know I can call the junction utility, but it would be better not to rely on external tools. ...

Can anyone recommend a good book or other resource on NTFS semantics?

I'd like to improve my understanding of NTFS semantics; ideally, I'd like some kind of specification document(s). I could (in theory) figure out the basics by experimentation, but there's always the possibility that I'd be ignoring some important variable. For example, I'm having difficulty finding definitive information on the followi...

How do I find out what volume a given NTFS path is on when using mount points?

I have an Exchange server with lots of mountpoints. Given the path to the database files is there a way to find out what volume they are on? The problem is that they are typically not at the volume mount point, but further down the tree. I'm using Powershell, so I need a solution preferably using WMI but could also use any .NET or COM...

dsofile c# API / NTFS custom file properties

I'm searching for a good way to add meta data to a file. dsofile.dll works fine for NTFS. The meta data is lost, when one drops a copy on a FAT32 share (it uses NTFS hidden streams I guess). Microsoft Word documents contain meta data that are not lost, how do they do it? Similiar to FAT, sending the file via E-Mail strips of all meta dat...

recovering partition with testdisk and ntfs recovery tools

I've used some tools to recover deleted partition and the result was like I can see almost all files, I had before, but it seems that files are shifted - something like this: I can't open images, but when I open big video file I can see video of other file, which was in same folder and it starts from the middle of it... As far as i reme...