Copy NTFS privilages - how it works?

Please report only one bug per message!

Moderators: white, sheep, Hacker, Stefan2

Post Reply
Zygus
Junior Member
Junior Member
Posts: 20
Joined: 2013-02-23, 17:51 UTC

Copy NTFS privilages - how it works?

Post by *Zygus » 2017-10-22, 22:12 UTC

Hi. Can You explain how this function works?
For example i am copying (under Win7) a folder from Program Files to another drive (from C: to D:).
It is copied to some folder for example D:\ProgramFilesMirror.
This folder has own set of privilages, other than the C:\Program Files and different set than source folder.
If I don't use this "copy ntfs privilages" the copied folder inherits privilages from ProgramFilesMirror.
So I would expect that if I use the mentioned option i will get the effect where copied folder will retain original set of privilages and all subfiles and subfolders will inherit from it.
But even if the option is checked the result is exactly the same as without checking NTFS privilages options.
Is this work somehow or it is only for fun?

EDIT: it seems that it works but in different way i was thinking. It doesn't touch the zone where privilages are inherited. But if they are not inherited, they will be copied. But it makes that this option has any sense if we are copying starting from the highest folder in the directory tree because in most cases all rest folders and files are inheriting privilages so this function will give nothing.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36500
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2017-10-23, 10:33 UTC

The functions are quite complex - please contact me by e-mail if you want to see the code.
Author of Total Commander
http://www.ghisler.com

Zygus
Junior Member
Junior Member
Posts: 20
Joined: 2013-02-23, 17:51 UTC

Post by *Zygus » 2017-10-23, 11:45 UTC

ghisler(Author) wrote:The functions are quite complex - please contact me by e-mail if you want to see the code.
Well, i could look into code, although I am not advanced programmer. I expect it can be complicated because whole Windows privilages system is not easy but complicated.
But I think I got a grip how it works (EDIT section of my post).
It could be implemented in other way, but it is hard to say if there is one proper way to implement this.

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3105
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp » 2017-10-23, 12:13 UTC

Zygus wrote:
ghisler(Author) wrote:The functions are quite complex - please contact me by e-mail if you want to see the code.
Well, i could look into code, although I am not advanced programmer. I expect it can be complicated because whole Windows privilages system is not easy but complicated.
But I think I got a grip how it works (EDIT section of my post).
It could be implemented in other way, but it is hard to say if there is one proper way to implement this.
There are many Windows documents on the net
which explains you the NTFS basics and advanced features.
This is not the forum to teach you NTFS
Windows 10 Home x64 October 2018 Update
Version 1809 (OS Build 17763.134)
TC 9.21a x64 and x86, Everything 1.4.1.921 (x64)

Zygus
Junior Member
Junior Member
Posts: 20
Joined: 2013-02-23, 17:51 UTC

Post by *Zygus » 2017-11-11, 21:11 UTC

Did i ask for explanation of NTFS privileges?
Why are You just jumping out of the box without reason?

Post Reply