How to enable NTFS items in TC-menu?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
sorex
Junior Member
Junior Member
Posts: 42
Joined: 2003-08-04, 12:02 UTC

How to enable NTFS items in TC-menu?

Post by *sorex »

Hello,

Since Win2008 and later doesn't allow us to change NTFS permission on multiple selected folders I was looking if TC has any options for it.

I read on the forum that there are some NTSC dialogs built-in but I can't find them nor find a way to add them into the menu like some people did.

How can I add this to a menu or what is its shortcut?

And would this allow me to change the ACLs to multiple folders (selected in a search result list) ?
User avatar
Dalai
Power Member
Power Member
Posts: 10021
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

It was a MS design decision to hide the Security tab when multiple files or directories are selected. See this thread on Serverfault and this one on the MS forums.

MS again decided what's good for the users (and even the admins), it seems ...

I don't know of any NTFS permissions editor in TC or its plugins. Searching on totalcmd.net for "ntfs" or "permission" doesn't show results related to an NTFS permissions editor, only stuff for viewing permissions/ACLs, ADS etc.

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
sorex
Junior Member
Junior Member
Posts: 42
Joined: 2003-08-04, 12:02 UTC

Post by *sorex »

hello Dalai,

I am aware that it's MS that's cause for a lot of misery for sysadmins.

anyway

TOTALCMD.INC has these lines

[________________Security________________]=0
cm_EditPermissionInfo=2200;Permissions dialog (NTFS)
cm_EditPersmissionInfo=2200;Typo...
cm_EditAuditInfo=2201;File auditing (NTFS)
cm_EditOwnerInfo=2202;Take ownership (NTFS)


someone posted his menu (as text) and there he used these items as popup.

he pasted it as text so I don't have a clue where to put the custom menu items.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

2sorex


This commands can be found in the "TC folder\TOTALCMD.INC"



You can execute this commands from TCs' command line,
from button, usercmd.ini, or from menu:

See "TC folder\LANGUAGE\WCMD_ENG.MNU"
like "MENUITEM "Properties&...\tAlt+Enter", cm_versioninfo"



Tip, try Extended English Menus for Total Commander (by petermad)
DOWNLOAD from: http://www.totalcmd.net/authors/1223914.html


 
User avatar
Dalai
Power Member
Power Member
Posts: 10021
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Ah, yes, I totally forgot about them. You can use any TC command in the TC command line, on a button in the button bar or the TC start menu. For the latter two, you can use the magnifiying glass to open the TC command browser which shows all available commands, including the ones you mentioned.

Unfortunately, I can't get these specific commands to work because Windows just shows the following error message when trying to use cm_EditPermissionInfo (on my Win7 VM):
---------------------------
Windows
---------------------------
Windows cannot edit permissions as requested because a component of the software you are using that is required to perform that function is not compatible with any version of Windows released after Windows Server 2003. Contact your software vendor to find out if this software has been updated for current versions of Windows.
---------------------------
OK
---------------------------
It's the same for cm_EditOwnerInfo (talking about taking ownership, of course). It looks like Vista and higher dropped support for the old functions from NT (3.x and/or 4.0) that allowed to view and edit the NTFS permissions.

There is a GUI tool called NTFS Permissions Tools, but as per my tests it has some bugs related to inheritance (the permissions are not correctly reflected on the objects). So, the only way to reliably edit NTFS permissions of multiple files/directories is a command line tool; I recommend SetACL because it's much more powerful than the MS tools.

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
sorex
Junior Member
Junior Member
Posts: 42
Joined: 2003-08-04, 12:02 UTC

Post by *sorex »

thanks.

I edited the MNU file but it still doesn't show up.

I was able to add it as a button tho but I got the same error as Dalai mentioned so it's (currently) useless.

I know xcacls/icacls and the likes but you need to know the exact active directory groups and users to apply the right which is tricky to script.

There are offical and unofficial GUIs for SetACL but none of them support the selection of multiple files/folders.

I guess we'll need to keep a windows 2003 server just for this task then.
sorex
Junior Member
Junior Member
Posts: 42
Joined: 2003-08-04, 12:02 UTC

Post by *sorex »

that NPT tool looks promissing but ...

an old version doesn't list the ACL's when selecting 2+ folders.

the most recent version doesn't allow me to edit the permissions when having 2 folder selected.
User avatar
Dalai
Power Member
Power Member
Posts: 10021
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

sorex wrote:I edited the MNU file but it still doesn't show up.
You don't need to. Just add the items you need to TC's start menu.
that NPT tool looks promissing but ...
Yes, this tool is a bit confusing and the interface could be easier to handle. IIRC it has two modes. And, as I said, the current version (1.3) has a bug related to inheritance. But I haven't used it in the last couple months, I don't remember any details of the bug, but because it and the cumbersome interface, I stopped using it.

In the end, there is a market gap to fill here, so programmers around the world, unite ;).

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
Post Reply