Move folders with different permissions.

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
itsupport@cpsl.com
Junior Member
Junior Member
Posts: 3
Joined: 2023-07-02, 21:32 UTC

Move folders with different permissions.

Post by *itsupport@cpsl.com »

Dear Colegues
I have a known problem but I don't know how to solve it.
In some users, When I move a folder to another folder with different permissions, the content does not inherit the permissions, continues with the original permissions
But other users, yes do it, it regenerates the permissions according to the destination folder.
All user have TotalCommander 10.52 installed.
ANd i dont know why in some user yes and in others no.
I have read in forums that it is a windows problem and that there are options that must be modified, but I have not touched anything in any.
I do NOT have the option to copy NTFS permissions selected.
What I can do?
I need that when folders are moved, the permissions are regenerated according to the destination folder, always
very thanks in advance
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Move folders with different permissions.

Post by *Stefan2 »

2itsupport@cpsl.com hello and welcome, what's your name? How should we speak to you?






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

Re: Move folders with different permissions.

Post by *ghisler(Author) »

You can control this behaviour with the option XPMoveMethod in wincmd.ini section [Configuration]:
XPMoveMethod=
1: When moving files within a drive, the permissions of the target folder are used
2: As 1, but when moving folders, all files and subfolders in them are changed to the target permissions too
0: The permissions of the files are kept
Default: XP:1, other systems: 0

2 isn't the default because it would freeze the program for several seconds when moving a folder with 1000s of subfolders.
Author of Total Commander
https://www.ghisler.com
itsupport@cpsl.com
Junior Member
Junior Member
Posts: 3
Joined: 2023-07-02, 21:32 UTC

Re: Move folders with different permissions.

Post by *itsupport@cpsl.com »

Dear all,
My name is Carlos, im IT technician
I cant connect until today
ghisler(Author) wrote: 2023-07-03, 09:28 UTC You can control this behaviour with the option XPMoveMethod in wincmd.ini section [Configuration]:
XPMoveMethod=
1: When moving files within a drive, the permissions of the target folder are used
2: As 1, but when moving folders, all files and subfolders in them are changed to the target permissions too
0: The permissions of the files are kept
Default: XP:1, other systems: 0

2 isn't the default because it would freeze the program for several seconds when moving a folder with 1000s of subfolders.
I try this solution, and in one case WORKS, but in other user, sometime works correctly, but others no.
I dont know why succes this. In two cases have TC 10.52 x64. The are one strange thin, in case that not work, when I modify wincmd.ini the property exist with 0 value. but in other case the property don't exist.

I will continue investigating.

VERY VERY THANKS for all,

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

Re: Move folders with different permissions.

Post by *ghisler(Author) »

The are one strange thin, in case that not work, when I modify wincmd.ini the property exist with 0 value. but in other case the property don't exist.
If the property exists, please change it instead of adding another line. It will not work properly when you have more than one line starting with XPMoveMethod= or more than one [Configuration] section.
Author of Total Commander
https://www.ghisler.com
itsupport@cpsl.com
Junior Member
Junior Member
Posts: 3
Joined: 2023-07-02, 21:32 UTC

Re: Move folders with different permissions.

Post by *itsupport@cpsl.com »

Yes i was change the property when it exist, and added when not exist. but didn't work.
I talked to the user that it works and not always work.
It is super strange, it seems totaly random, because i try with the same source and the same destination, and sometimes it works and others no.
I was verify, only exist one line with [Configuration] and only one line with XPMoveMethod=

This is the Configurations section:

[Configuration]
firstmnu=2742
FirstTime=0
test=56
ShowHiddenSystem=1
UseLongNames=1
Small83Names=0
OldStyleTree=0
autotreechange=0
DirBrackets=1
ShowParentDirInRoot=0
SortDirsByName=1
Tips=3
FileTipWindows=0
Win32TipWindows=0
SortUpper=0
AltSearch=2
QuickSearchMatchBeginning=1
QuickSearchExactMatch=0
LogOptions=7198
LogRotateLimit=0
LogKeepCount=30
DirTabOptions=824
DirTabLimit=32
ExplorerForCopy=0
Win95Delete=0
UseTrash=1
SeparateTree=0
PanelsVertical=0
FirstTimeUnpack=0
FirstTimeZIP=0
onlyonce=0
TrayIcon=0
UseRightButton=0
Savepath=1
Savepanels=1
MarkDirectories=1
AlwaysToRoot=0
SingleClickStart=0
RenameSelOnlyName=0
SaveCommands=1
SaveHistory=1
CountSpace=1
CountMarked=1
1hourdif=0
CopyComments=6
InstallDir=c:\totalcmd
UseNewDefFont=0
SetEncoding=äö.do.not.remove
FirstTimeIconLib=0
QuickSearchAutoFilter=1
UseEverything=0
LastSearchOptions=32
SyncFlags=0
SyncButtons=63
SamePartitions=C
DirTabIcons=255
AutoComplete=2
EverythingForSize=0
CommentPreferredFormat=4
IconClickSelection=1
UseRubberBandSelection=1
Viewer=none
Editor=""C:\Program Files\Notepad++\notepad++.exe" "%1""
Viewertype=1
SeparateTreeWidth=249
XPMoveMethod=2
LanguageIni=WCMD_ESP.LNG
Mainmenu=WCMD_ESP.mnu
ShowCentury=1
Aligned extension=1
SizeStyle=0
SizeFooter=1
GetDirSize=0
DirTabRevert=1
DirTabFilters=1
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Move folders with different permissions.

Post by *ghisler(Author) »

Maybe it depends on the permissions themselves? Files and folders can have their own permissions (stored in an alternate data stream) or permissions inherited from the folder they are in, or a mix of both. The user could check whether there is a difference between folders where it works and those where it doesn't.
Author of Total Commander
https://www.ghisler.com
Post Reply