Write protection of TC ini files in program directory

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
tcebob
Member
Member
Posts: 178
Joined: 2003-03-23, 22:11 UTC
Location: Sunrise FL, USA

Write protection of TC ini files in program directory

Post by *tcebob »

I want to keep the ini files in the program directory for ease of access. I moved them there with the program Inireloc but when I tried to edit one with Change Settings Files Directly I was refused permission by Win 10 because Program Files is protected. I'm not anxious to remove the protection but is there some way around this situation? My only idea is to install TC in its own private directory.
User avatar
Dalai
Power Member
Power Member
Posts: 10035
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Well, if you really want to keep the settings files in TC's directory, you can edit the NTFS permissions (allow write to the file) of every settings file. But keep in mind that it's not only wincmd.ini and wcx_ftp.ini but default.bar, the plugin settings files as well (if you use any plugins) and perhaps some more files.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Just install TC under C:\Totalcmd\
TC's Exe-file has it's own detection against modification.

Or simply change the access rights for the ini files only.

Regards
Holger
Make our planet great again
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

TC's Exe-file has it's own detection against modification.
But other executables or libraries in TC folder have not...
So editing permissions is the best way, though it may not be easy to detect where some plugins create their configuration files.
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

The executables and dlls installed by TC are digital signed.
But i'm not sure if TC checks this before loading.
https://msdn.microsoft.com/en-us/library/aa382384%28VS.85%29.aspx

Regards
Holger
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Most plugins are unsigned anyway...
Post Reply