This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Copy NTFS privilages - how it works?

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC9.0x bug reports (English) Printable version
View previous topic :: View next topic  
Author Message
Zygus
Junior Member
Junior Member


Joined: 23 Feb 2013
Posts: 20

PostPosted: Sun Oct 22, 2017 4:12 pm    Post subject: Copy NTFS privilages - how it works? Reply with quote

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 DSmile.
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.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35943
Location: Switzerland

PostPosted: Mon Oct 23, 2017 4:33 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Zygus
Junior Member
Junior Member


Joined: 23 Feb 2013
Posts: 20

PostPosted: Mon Oct 23, 2017 5:45 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Horst.Epp
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2969
Location: Germany

PostPosted: Mon Oct 23, 2017 6:13 am    Post subject: Reply with quote

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 x64 Version 1803
April 2018 Update (OS Build 17134.165)
TC 9.20 x64 and x86, Everything 1.4.1.905 (x64)
Back to top
View user's profile Send private message
Zygus
Junior Member
Junior Member


Joined: 23 Feb 2013
Posts: 20

PostPosted: Sat Nov 11, 2017 3:11 pm    Post subject: Reply with quote

Did i ask for explanation of NTFS privileges?
Why are You just jumping out of the box without reason?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC9.0x bug reports (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group