Questions tagged [ntfs]
NTFS (New Technology File System) is the primary file system used by Windows.
934
questions
0
votes
0
answers
33
views
Problem with the setting IsInherited in my powershell script
I have to make a script who change users domain of my shared folder and add them in addition to the existing users rights.
1st :
I do a script in PowerShell to get all NTFS rights of my directories (...
-2
votes
0
answers
37
views
changing ntfs permission on virtual directory using powershell
I am trying to change NTFS permissions of a virtual directory I created on an IIS windows 2016 server core machine?
to clarify, I do not want to change the "physical" directory permissions ...
0
votes
1
answer
14
views
PRESTIGIO tablet and NTFS pendrive
As far as I know, Android doesn't support NTFS file format, but when I connect pendrive with NTFS to my tablet (PRESTIGIO MULTIPAD 4 QUANTUM 7.85) it opens it with no problem and I can use files on it....
-1
votes
1
answer
34
views
Difference behavious between file written by code and by text editor?
I have some xml code that i like to have pretty printed (but is not parsable by tools like XmlDocument etc.) in a browser. I currently write the xml code to a file with
File.WriteAllText(filepath, ...
0
votes
0
answers
25
views
os.utime() doesn't change st_atime in a loop
I'm using a function to change the st_atime & st_mtime for files in a directory and the function looks like below (fileStatusDFOld is a df containing all the files' full directory):
for index, row ...
1
vote
1
answer
38
views
PowerShell Total File Count And Count Files Newer Than A Date
I want to get total file count and count of files newer than a specific date without having to do 2 separate calls. Is there a way do get both of these counts in 1 call?
Inefficient Way:
cls
$...
0
votes
0
answers
19
views
Is there a way in Windows 10 to create a virtual link from an UNEXISTING file to an existing one?
I'm using Windows 10 on a device that has only one SSD formatted with NFTS, the drive letter is C:\
I have an application that looks for a file located in D:\afolder\needed.file (I can't change this)
...
1
vote
3
answers
184
views
Why must multiple filesystem "types" exist?
File systems provide a mechanism for categorizing (and thus navigating) data on a disk. This makes sense to me. If I want to find some "group" of data, I don't want to have to remember byte ...
0
votes
0
answers
60
views
NTFS and CIFS share access and permissions
Lets say I created NTFS partition my_ntfs_volume as local administrator and assigned two application groups to it:
domain_group_app1_ro:
Full control - no
Modify - no
Read &...
0
votes
0
answers
10
views
Strange disk I/O with Pytorch multi workers!
I am using pytorch to train networks. But I find dataloader is very slow even with multi workers. After some debug I find that the disk I/O is kind of strange.
As you can see,I have many worke with ...
0
votes
0
answers
22
views
NTFS share permission
I create a samba share, and I want all others users to only have read permission and the owner of the folder / administrator to have Read/write permission, when I try to use everyone groups and to ...
0
votes
1
answer
33
views
Calculations of NTFS Partition Table Starting Points
I have a disk image. I'm able to see partition start and end values with gparted or another tools. However, I want to calculate them manually. I inserted an image , which showing my disk image ...
0
votes
1
answer
28
views
Powershell not setting exact modified time?
So I don't really mind and it's not super important but I wrote a powershell script to set the time of a codec converted family film. The original files ext been named to MP44 and the resulting ...
1
vote
0
answers
180
views
c# File.WriteAllBytes raises "Access denied" exception, while "FileStream.Write" succeeds
I have the following code:
var cnt = new byte[] { 0xaa, 0xbb };
var fileName = @"C:\ProgramData\path\to\myfile.bin";
try
{
File.WriteAllBytes(fileName, cnt);
Console.WriteLine((&...
0
votes
2
answers
40
views
how to create a script that allows to use the path list as a reference for copying files in PowerShell in .bat script
I'm looking for a way to automate archiving where after I plug my two external drives I can copy all my resources. The problem is that I have different file structures on my laptop and on both ...
1
vote
1
answer
37
views
Why is GParted moving free space?
I have a 4 TB drive with 2 partitions - a 1TB partition (halfway used) and a 3TB partition (not even 300GB had been used).
I took the files from the 1TB partition and put it in the 3TB one in ...
0
votes
1
answer
43
views
Is it possible to split one large file into n files without copying?
Is it possible to split one large file into n files without copying ?
Ex.
We have a large 1000 MB file and we want to spit these into say 10 individual files of 100 MB each.
The only way I know is to ...
-1
votes
1
answer
22
views
why does the drive space used vary between two disk drives holding identical files
I have two external NTFS USB drives with identical files but 5GB difference in used space. The drives are 500/1000 (465GB and 931GB) with 257GB and 252GB used. There is no fragmentation and no windows ...
1
vote
1
answer
150
views
Powershell get-acl add user first and last name
I have the following code that returns the ntfs permissions for a particular folder path.
$folders = Get-ChildItem -path d:\test" -recurse -force | ?{ $_.psiscontainer }
$output = @()
foreach($...
2
votes
2
answers
226
views
Powershell doesn't read files size correctly if these are in progress of change (i.e files being downloaded)
I am crafting a Powershell script that aims to turn off a Windows machine (laptop/PC) once a download of one or more files is completed (for the sake of the example, let's assume one large file is the ...
0
votes
1
answer
280
views
how to use the new ntfs3 driver on fedora 34
linux kernel 5.15 comes with new ntfs3 driver, I'm on fedora 34 with kernel 5.15.6, but when I mount a device using ntfs3, it reports error:
# uname -a
Linux fedora 5.15.6-100.fc34.x86_64 #1 SMP Wed ...
1
vote
0
answers
205
views
How to remove Everyone permissions for NTFS and add Authenticated users
I have a script to remove Everyone permissions for NTFS and add Authenticated users, but I am using the SMB share to remove and add but that is not working for the Subfolders, can I do that using the ...
0
votes
1
answer
80
views
How to distinguish ADS (Alternate Data Stream) vs Main stream changes with ReadDirectoryChangesW
I'm developing file sync client for Windows.
I use ReadDirectoryChangesW API for detecting file events (modifying, remove, create, etc.).
But ReadDirectoryChangesW reports NTFS ADS changes same as ...
1
vote
1
answer
111
views
Hard link to a symbolic link with Win32 API?
Quick background to this question as I'm sure it'll raise a few eyebrows: I'm developing a command line tool in C for making backups, and I am implementing incremental backups using NTFS hard links. ...
0
votes
0
answers
17
views
Resetting folder tree with icacls, excluding start folder
On a Windows machine using NTFS file system, I'd like to reset all files and subfolders ACLs, excluding the "starting" folder itself. For instance, say one wants to reset all files and ...
0
votes
0
answers
69
views
List NTFS and SMB permissions from multiple remote servers
I have requirement to list all the NTFS and SMB permissions from multiple remote servers, but i found a script to get the list on one server using the UNC path, instead of them can anyone of you help ...
0
votes
1
answer
48
views
Similar to junction points, directory symbolic links, mount points
I wrote a program to detect if a directory is a ReparsePoint and it precisely detects junction points, directory symbolic links and mount drives. I saw a directory which looks and works similar to ...
0
votes
0
answers
78
views
What is the RPC Control Windows Object Manager namespace?
I am working on a presentation about symbolic link exploitation on Windows. Most attacks will make use of NTFS junctions with symbolic links created under the RPC Control object namespace. Could ...
1
vote
0
answers
228
views
Set Permissions of a file using Windows API
I need to Set permission from a Web Application. For that I'm using Java for backend and ember js for frontend. For getting and setting the permission, I'm using C++ combined with Windows API using ...
-1
votes
1
answer
62
views
How to delete a file with incorrect name? [closed]
Some application created several files with completely incorrect names in NTFS HDD because of incorrect input data. These files have lots of unrecognizable symbols including Unicode control characters ...
0
votes
1
answer
201
views
Remove network drive permissions of a user in all subdirectories
I am trying to remove a user from all subdirectories in a network share.
I have tried the following command: ICACLS X:\ /remove:g username /T
The command runs without failure (although it takes 3.5 ...
0
votes
1
answer
33
views
It's possible to build a game using other project's ntf?
As in the title, It's possible to build a game using other project's ntf? How can I do that?
For example, a game where in the 3D space, players can add frames of their own ntfs in his room.
0
votes
1
answer
98
views
How to read files in a junction point directory, using GetFileInformationByHandleEx?
I have this code which runs fine if path points to a regular directory:
#include <windows.h>
#include <stdio.h>
int main()
{
wchar_t path[1024] = L"C:\\MyPath\\MyDir";
...
0
votes
1
answer
169
views
Trying to get folder sizes for all users directory
I am trying to write a powershell that will look at a network share and write out to a CSV the full name of the share and the size in MB or GB of those folders for each user home directory folder.
...
0
votes
0
answers
368
views
Set-acl unauthorized access
My script which basically should copy folders from template and apply acl from it throws following error:
I've setup correct ntfs rights on share and checked SeSecurityPermission
Part of log file ...
0
votes
0
answers
107
views
NTFSSecurity in PowerShell Will Not Remove Recursive Unresolved SIDs
I am trying to scan and then remove all unresolved SIDs in my environment. Finding the SIDs with the PowerShell module NTFSSecurity works great. It is when I try to pipe in the remove command that it ...
0
votes
1
answer
35
views
NTFS permissions: Allow creation / modification / deletion of folders and subfolders and files only with a UAC prompt
I have a folder without any inherited permissions. I want to configure it in a way that allows reading all subfolders and files like usual but shows a UAC prompt if I try to create/modify/delete files ...
0
votes
1
answer
153
views
How to use impersonation in Blazor Server Side to access a folder on a File Server
In .NET Framework, using this would let me impersonate a user in Active Directory to gain access to a locked down folder on the file server:
[DllImport("advapi32.dll", SetLastError = true, ...
0
votes
1
answer
48
views
How to prevent shortcut path being modified after target file was renamed on NTFS?
The context is the following: there is a program that need to be updated when necessary by itself. The idea was to rename the current executable, download new one, place it as normally named and ...
2
votes
1
answer
424
views
How do you copy a file into an NTFS alternate data stream in Powershell?
I'm trying to create a proof of concept of an example I saw in a textbook for one of my cybersecurity classes. I set up the required files and tried it but I only am getting errors.
This is the ...
-1
votes
1
answer
16
views
Are the extension-guides for vscode open source?
How can I use a micro SD card on mac (MacOS Big Sur 11.4 (20F71))?
I've tried chmod 777 on both /dev/disk2s1 /Volumes/yp-storage.
I could fix an example to construct mount -uw...
Weird why Apple doesn'...
0
votes
0
answers
66
views
Fundamentally, what information exists in the process of a malicious UEFI NTFS driver deleting a file that can be prevented by another driver?
I'm interested in the complicated problem of stopping a rootkit at ring -2 (System Management Mode) from deleting a specific file. Even including formatting a drive would make this question too broad, ...
0
votes
0
answers
20
views
Best practice to record creator of a file
I want to only warn my users that they are overwriting a file if it wasn't generated by my program.
I thought the best approach might be store another file like Package.docx.info which contains the ...
1
vote
1
answer
61
views
How to check S_ISREG for a Windows NTFS file over SFTP in Python?
I'm connecting to an SFTP server (NTFS) and trying to pick up all the files that are regular files (in my case, they're json files for now, but they could be anything else). This is the relevant ...
0
votes
0
answers
78
views
How to open and read file with DiscUtils.NTFS?
I am using DiscUtils.NTFS from nuget and code
NtfsFileSystem ntfs = FileSystemSource.NtfsFileSystem();
Stream s = ntfs.OpenFile(fileName, FileMode.Open, FileAccess.Read);
with FileSystemSource ...
0
votes
0
answers
49
views
How do I detect what process modified a file in Windows using Powershell Events?
I know that you can monitor a file or directory by subscribing to events from Windows in Powershell; but how do I tell what process / pid made the change?
Register-ObjectEvent -InputObject $...
0
votes
1
answer
302
views
Powershell add domain user to ntfs permission to a file
Im trying to write a script where a part of it take ACL from file and adding specific user ntfs permission to modify:
$identity = "$domain\$adname" #In this example $domain='muzi.local $...
0
votes
0
answers
157
views
How to find out what permissions users have on a particular folder?
I created this script that parses a specific directory "xyz". I have isolated "NETZ" groups that have access to this directory and run through them recursively and counted the ...
0
votes
0
answers
76
views
Best way to Change Folder Permissions on a Large Public Folder?
Size of Public Folder: Approx 11tb
Share Permissions: Everyone Full Control & Administrators Full Control
NTFS Permissions: Everyone Full Control , Domain Users Full Control , Domain Admins Full ...
2
votes
1
answer
218
views
How can I automate no, partial and full hydration of "cloud" files (OneDrive) for testing?
I would like to test some software and would like to make it well-behaved regarding cloud files. For reference functions like RtlIsPartialPlaceholder and RtlIsCloudFilesPlaceholder have been ...