cm_SearchFor doesn't work in restricted access dirs

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

cm_SearchFor doesn't work in restricted access dirs

Post by *DrShark »

This issue was reported by email on March 15, 2018, but I didn't get reply on it yet, so don't know whether it was confirmed.

To reproduce:
1. Select or open folder with restricted access, where user (domain\Username) or even Administrator can't write. Actually, NTFS has several read- and write-related deny permissions, so I'm not sure which of such permissions should be in deny state to reproduce the issue, but there is an example set of folder's permissions where it may be certainly reproduced:

Code: Select all

SID: S-1-1-0: (OI)(CI)(NP)(DENY)(W,D,WDAC,WO,X,DC)
SID: S-1-1-0: (OI)(CI)(NP)(R)
SID: S-1-3-0: (OI)(CI)(IO)(F)
NT AUTHORITY\SYSTEM:(OI)(CI)(F)
SID: S-1-5-3: (RX,WD,AD)
SID: S-1-5-3: (OI)(CI)(IO)(M,DC)
SID: S-1-5-32-544: (OI)(CI)(F)
SID: S-1-5-4: (RX,WD,AD)
SID: S-1-5-4: (OI)(CI)(IO)(M,DC)
SID: S-1-5-6: (RX,WD,AD)
SID: S-1-5-6: (OI)(CI)(IO)(M,DC)
domain\Username:(OI)(CI)(NP)(F)
SID: S-1-5-21domain-501: (RX)
(my Windows interface has russian language, so I replaced SID names with cyrillic by SID codes.)
2. Start "Find Files" (Alt+F7/cm_SearchFor).
3. Press Enter to start search, error will appear:

Code: Select all

---------------------------
Total Commander
---------------------------
Search path not found!
---------------------------
ОК   
---------------------------
Search in separate process (Alt+Shift+F7/cm_SearchStandalone) works fine in such folders.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Total Commander needs the right to set the current directory to the start directory, otherwise search will fail. I think it's the "execute" permission?
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should be fixed in TC 9.20 beta 1, please test it!
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

history920.txt wrote:09.04.18 Fixed: Starting a search in certain directories failed with error "Search path not found!", e.g. in C:\ProgramData\Microsoft\Windows\WER\ReportQueue\, because SetCurrentDirectory failed (32/64)"
I can confirm both internal and external search work now for Total Commander 9.20 beta 1 on Vista 32-bit in locations where it didn't work for me (in TC 9.12, in some locations where admin access for reading actually not required, only external search worked, and in some both internal and external showed "Search path not found!" error, now in TC 9.20 both searches work, and TC also doesn't show unnecessarry elevation request to access such folders.)
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply