"Security Info" content plugin

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

"Security Info" content plugin

Post by *Alextp »

This content plugin allows to show group and owner for files on NTFS partitions under Windows NT/2000/XP.

In the future versions it will also allow to show access permissions.

Homepage
Download

Your comments?
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Alextp
Hi,

fast work! :-)
Your comments?
1. It doesn't work on UNC paths. Same problem as FileX.
2. Doesn't work for local files and directories which just belong to an ID.
3. The format looks a bit wired. It looks like group is domain@group and owner is owner@group. FileX provides seperated fields for domain/group/owner, Shelldetails displays owner@group.
4. If they is no right to read the group/owner please display something like "access denied".

Tested on Windows XP SP2.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2Lefteous
1. It seems API functions don't return right values for UNC paths.
Edit: or I need to specify "\\?\" prefix in functions call?
2. What is "file which belongs to an ID"?
3. Format is always name@domain, both for owner and group. Look into source code (into SecProc.pas), how should I change it?
4. I may display "Access denied", but why don't you like empty string?

BTW, I looked at AccessEnum source code. It's hard for me to translate all this huge code to Delphi, so I don't think I'll add display of permissions to plugin. :(

Lefteous, you are using C, maybe you will try to adapt that code?
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Alextp
Sorry I can't really help you here without investing a lot of time which I currently don't have. :oops: Security is a not a simple function call - at least AFAIK.
Maybe I will try to make such a plug-in when I have more time and noone else has done it until then.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Maybe I will try to make such a plug-in when I have more time and noone else has done it until then.
When you made it, I'll delete my plugin: it's useless without permission info...
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Lucky me, I have found a freeware Delphi component that can do all security job for me.
It can show the following access flags:

Read
Write
Execute
Delete
Change Permissions
Take Ownership

Flags are stored separately in "File rights" and in "Directory rights": Lefteous, which of them I need to display?
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Alextp
which of them I need to display?
I would test them all against the effective permissions properties displayed in Windows security dialog.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

effective permissions properties displayed in Windows security dialog.
How to call this dialog in Win XP? There's no such properties in Alt+Enter dialog...
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Alextp
How to call this dialog in Win XP? There's no such properties in Alt+Enter dialog...
It works only on NTFS drives as the security is integrated in the file system.
To check compare the effective permissions start TC as a member of the Administrators group. Other users may not have enough rights to enumerate security attributes.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

To check compare the effective permissions start TC as a member of the Administrators group. Other users may not have enough rights to enumerate security attributes.
I'm talking not about TC, but about native Windows dialog which shows permissions - how to call it? I logged in as Administrator, called Alt+Enter dialog from Explorer on NTFS drive - there is no such dialog in Explorer properties sheet. Where is it?

I must compare native Windows dialog results with results from Delphi component. Results of component differs from results of AccessEnum, I don't know why...
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Alextp
I'm talking not about TC, but about native Windows dialog which shows permissions
Me too - both programs Windows Explorer and TC display the same property sheet.
I logged in as Administrator, called Alt+Enter dialog from Explorer on NTFS drive - there is no such dialog in Explorer properties sheet. Where is it?
I remember an option in XP which hides the "Security" tab in the property sheet. In the control panel select "folder options". Select the "View" tab and uncheck the "Use simple file sharing" option.

Maybe you have to logoff and login to apply the new setting.

Please consider that I don't have an English XP installed here. All terms are freely translated from German.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2Lefteous
OK, found it, thanks.

But native dialog results differ from results of Delphi component. I'll write to component author, and when he'll fix that, I'll make new plugin version...
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Hello Alextp

today I started with your plugin and found that is shows also the file-owners of an old domain where other plugins display only the SID.
That is fine !

But I have problems to use it in TC-plugin-search
- It displays the owner as "JohnTest"
- search for owner which contains "hnte" brings no results.

Also WDXInfoPacker tells me "the wanted plugin is missing".

What to do against it?

Thanks

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Well, no idea. WdxInfopacker isn't good ref, it can miss someth..
Post Reply