ntfs

Setting NTFS Permissions With Powershell

此生再无相见时 提交于 2019-12-06 08:38:36
问题 Using the following powershell I have set the NTFS Permissions for a folder for full control. For some reason this is only applying to the folder and not its contents. I followed the instructions located here $username = "exampleuser" $permissionArgs = "domain\$username", "FullControl", "allow" $permissionRule = New-Object System.Security.AccessControl.FileSystemAccessRule $permissionArgs $acl = Get-Acl 'C:\Users\username1\Desktop\TESTING2' $acl.SetAccessRule($permissionRule) Set-ACL -Path 'C

VB.NET app is setting restricted file permissions on a directory, which is incorrectly restricting user created files in the same directory

回眸只為那壹抹淺笑 提交于 2019-12-06 07:19:28
My VB.NET application builds a tree of directories with restricted access. The access should be that a normal user can not delete or rename the existing tree. But the user can add new files/folders anywhere in the tree. A user created file/folder should be fully modifiable by any user. The problem I'm having is getting access set so that files/folders created by the app can't be changed, but files/folders created by users can be changed by any user. What is currently happening, is the files/folders made by the application behave correctly. But when a user creates their own file/folder, that

How do I get *change* file time in Windows?

∥☆過路亽.° 提交于 2019-12-06 03:40:18
问题 I am trying to use FreeNAS CIFS share with Windows (synchronizing files from Windows to FreeNAS) and hit a problem that robocopy.exe thinks that some files need to be copied again every time I run robocopy.exe (/COPY:DAT). My favorite file management tool, Far Manager, tells me that "Change time" is different: File times on Windows: File times on CIFS share backed by FreeNAS (ZFS): I am perfectly fine with the fact that "change time" is lost, and I'd be happy to reset change time on the

Reading MFT in NTFS

老子叫甜甜 提交于 2019-12-05 23:56:26
While wandering the web looking for explanations of how to read/write MFT I found the folowing section:( http://www.installsetupconfig.com/win32programming/1996%20AppE_apnilife.pdf ) If NtfsProtectSystemFiles is set to FALSE, then the special files can be opened. There are, however, some drawbacks associated with attempting to do this: Because many of the special files are opened in a special way when mounting the volume, they are not prepared to handle the IRP_MJ_READ requests resulting from a call to ZwReadFile, and the system crashes if such a request is received. These special files can be

CentOS提示::unknown filesystem type 'ntfs'.解决

旧城冷巷雨未停 提交于 2019-12-05 19:09:01
CentOS 默认源里没有NTFS-3G,想要添加ntfs支持,无非是自己下载编译安装或者加源yum安装。重新安装了一个CentOS7,用的是添加aliyun的epel源来yum安装的方式,简单易行。 1、加源 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo 2、安装 # yum update;yum install ntfs-3g 如果系统提示:没有可用软件包,可以输入 # yum install ntfs* 来源:http://mirrors.aliyun.com/help/epel,说明里面没有写CentOS7的源,实际上是有的,把里面的5/6改成7就行了。 上面的方法是YUM安装方式,下面讲讲其它方式和详细挂载 CentOS下没有默认支持挂载ntfs分区,可以利用ntfs-3g来实现。可以用yum来安装ntfs-3g,不过默认的yum库中没有ntfs-3g,需要先安装rpmforge。 一、安装rpmforge 何为rpmforge?RPMForge是CentOS系统下的软件仓库,拥有4000多种的软件包,被CentOS社区认为是最安全也是最稳定的一个软件仓库。 1、确认系统是否安装了priority这个yum的插件,这个插件用来保证安装软件时候软件仓库先后次序

How do you reduce the size of a folder's index file in NTFS?

与世无争的帅哥 提交于 2019-12-05 15:40:36
I have a folder in NTFS that contains tens of thousands of files. I've deleted all files in that folder, save 1. I ran contig.exe to defragment that folder so now it's in 1 fragment only. However, the size of that folder is still 8MB in size. This implies that there's a lot of gap in the index. Why is that? If I delete that one file, the size of the index automatically goes to zero. My guess is because it gets collapsed into the MFT. Is there any way to get NTFS to truly defragment the index file by defragmenting it based on the content of the file? Any API that you're aware of? Contig.exe

FILESYSTEM vs SQLITE, while storing up-to 10M files

核能气质少年 提交于 2019-12-05 13:01:14
I would like to store up-to 10M files, 2TB storage unit. The only properties which I need restricted to filenames, and their contents (data). The files max-length is 100MB, most of them are less than 1MB. The ability of removing files is required, and both writing and reading speeds should be a priority - while low storage efficiency, recovery or integrity methods, are not needed. I thought about NTFS, but most of its features are not needed, while can't be disabled and considered to be an overhead concern, a few of them are: creation date, modification date, attribs, journal and of course

Delphi 2009 classes / components to read/write file permissions

◇◆丶佛笑我妖孽 提交于 2019-12-05 10:22:10
Does anyone have a set of classes / components that will work with Delphi 2009 (Unicode) to read and write NTFS file permissions? There was a thing called "NTSet" - but they stopped development at Delphi 2006 about 3 years ago :-( Any other takers?? Thanks! Marc JCL has units to deal with file permissions, and they claim D2009 compatibility. Colin Wilson's "NT low-level" component set wraps the APIs you need, and supports Delphi 2009 as well as earlier releases. However you may need to rely on the MS documentation and samples if you need detailed help to implement a specific operation. You can

NTFS Alternate Data Streams - Good or bad Idea?

[亡魂溺海] 提交于 2019-12-05 06:58:20
I would like to store some Application-Related Metadata for Files, and NTFS Alternate Data Streams (AltDS) would allow me to store this metadata directly on the files rather than in a separate database. I just don't feel like this is a good idea. I know that this only works on NTFS, but at least if the user copies/moves the files to a Non-NTFS drive they get a Warning from Windows (yeah, yeah, no one reads warnings, I know)- But also, storing additional data on a file can become very wasteful, as the AltDS stay even if my Application is uninstalled. It's like a decade ago when people used

dumping the content of the $mft file

大城市里の小女人 提交于 2019-12-05 02:54:38
问题 for some commercial project I'm doing I need to be able to read the actual data stored on the $mft file. I found a gpl lib that could help, but since its gpl i can't integrate it into my code. could someone please point me to a project that i could use / or point me at the relevant windows API (something that doesn't require 1000 lines of code to implement) BTW, why doesn't windows simply allow me to read the mft file directly anyway? (through the create file and the read method, if i want to