[REQ] Change the new "User Access Rights" Feature

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

MesserJocke
Junior Member
Junior Member
Posts: 2
Joined: 2006-11-02, 10:55 UTC

[REQ] Change the new "User Access Rights" Feature

Post by *MesserJocke »

Hi

1st of all: This new Version of TC ROCKS!!! This great App gets even more.... [fill in more praise]

My topic: The new feature to access files&folders with different user rights is a great idea and works very good. But i would change the following:
-> When accessing a folder where i even doesn't have read-rights, i can use "Administrator" with PW. So far so good. But TC wrote permanently read-rights for me there.... This shouldn't happen.

Also, after doing stuff with this restricted folder, i should be able to withdraw this special access (security reasons).

But all in all: great job, Christian!!!

MJ
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2MesserJocke
How would you define "after doing stuff" and how should the user tell TC this?
MesserJocke
Junior Member
Junior Member
Posts: 2
Joined: 2006-11-02, 10:55 UTC

Post by *MesserJocke »

OK
Example:

There is a folder like c:\secret\ where i dont have read access. But i want to copy a file into it.

So i open this folder; <ALERT - No READ ALLOWED>; using Admin-user/pw; <CLEAR>; folder now open; i copy the file; <ALERT NO WRITE ALLOWED>; again using Admin-user/pw; <CLEAR>; leaving the folder; re-enter the folder <ALERT - No READ ALLOWED> .... and so on.

Short: TC should always ask me for Admin for Read attempts (this is what I meant with 'withdraw') like what it does with the write attempts.

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

Post by *ghisler(Author) »

Well, I implemented this as it is implemented in Windows Vista Explorer now. I would prefer a temporary solution too, but asking the user each time for each directory read is just not feasible. TC refreshes the current directory each time you switch to it - it would make users mad if they had to confirm that every time!

Any better ideas?
Author of Total Commander
https://www.ghisler.com
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3377
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

make optional like
KeepUserRights =
0 = Default as its now
1 = Allways ask
Hoecker sie sind raus!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This doesn't help - if I don't set the rights to the folder, you cannot do much with that folder except for listing the files:
- icons will not display
- thumbnails will not display either
- files cannot be viewed
- files cannot be copied anywhere
etc. etc.
Author of Total Commander
https://www.ghisler.com
aksdb
Junior Member
Junior Member
Posts: 13
Joined: 2003-02-10, 11:25 UTC

Post by *aksdb »

How about spawning a new process in the background that handles these operations but is started under the administrator account? TC could interfere with this process (via a pipe, shared memory, or whatever) and initiate all required actions (writing, reading).

A far less complicated possibility (but somewhat "hacky") would be to remove the rights from the folder after leaving it. But I guess that would be too risky (for example if a crash occured).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

How about spawning a new process in the background that handles these operations but is started under the administrator account?
I'm already doing this. It's just not feasible to write every single function in TC twice.
Author of Total Commander
https://www.ghisler.com
User avatar
wanderer
Power Member
Power Member
Posts: 1640
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

ghisler(Author) wrote:it would make users mad if they had to confirm that every time!
Probably. You could perhaps keep the user/pwd in memory for an INI-definable amount of time (having a 2-3 minutes default value). Of course then you might want to make sure they're encrypted (in memory) for security reasons, etc...
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
aksdb
Junior Member
Junior Member
Posts: 13
Joined: 2003-02-10, 11:25 UTC

Post by *aksdb »

ghisler(Author) wrote:
How about spawning a new process in the background that handles these operations but is started under the administrator account?
I'm already doing this. It's just not feasible to write every single function in TC twice.
So I guess you also don't like the idea of putting these functions in a DLL to be used by both programs/processes? So you have all functions only once and depending on the situation TC uses them itself and if necessary it spawns the new process to call the functions and return the result.
Eddie1506
Junior Member
Junior Member
Posts: 32
Joined: 2004-05-23, 19:57 UTC

Post by *Eddie1506 »

Don't know if this is solved or not, but one solution might be to keep permissions until TC is closed.

This way, you do what you have to with restricted folder, close it, reopen TC and voila, no access anymore.
User avatar
wanderer
Power Member
Power Member
Posts: 1640
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

Eddie1506 wrote:Don't know if this is solved or not, but one solution might be to keep permissions until TC is closed.

This way, you do what you have to with restricted folder, close it, reopen TC and voila, no access anymore.
Not a good idea. This feature has been implemented by MS both for security reasons and for helping the user. The way you are describing it, you ignore security reasons for user friendliness. If you let TC open after giving the password and then leave your PC for i.e. 1 hour, anyone can have access to it. There should probably be a timeout for this. If the password hasn't been used for X seconds/minutes, it should be reset and re-asked.

In all of this, there is also one other matter: what if you are using 5 instances of TC? Should you be asked for the password by each instance? :shock: Perhaps a solution similar to the one aksdb proposed might be better after all.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

In Beta 2, the access remains allowed until the timeout occurs, which can be set via

AdminTimeout=

in Wincmd.ini. Default is 2 (2 Minutes).
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
Default is 2 (2 Minutes).
I thought it's set in seconds (default = 180)?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You are right, sorry! I had just made some tests with very short timeouts. :)
Author of Total Commander
https://www.ghisler.com
Post Reply