No chance to access file/folder with specific access rights
Moderators: Hacker, petermad, Stefan2, white
No chance to access file/folder with specific access rights
Steps to reproduce:
1) Create "C:\Test" folder.
2) Open its Properties, go to Security tab:
- remove all access rights,
- add full access rights for some user, that you are not currently logged in as, but also not for Administrator (for example add access rights for Guest).
3) Try going into "C:\Test" - TC says "Access denied on file". Now:
- Windows XP and older: press "As Administrator" button, enter user name (Guest in this example) and his password - now you have access to the folder,
- Windows Vista and newer: press "As Administrator" button, allow UAC to go on - by using tcmadmin.exe, TC tries to access "C:\Test" as Administrator, but the folder has no access rights for Administrator, tcmadmin.exe silently fails and nothing happens.
Solution: when tcmadmin.exe returns an error code (or only some specific error code?), TC should perform same procedure as in older Windows versions - ask for user name and his password.
Regards
1) Create "C:\Test" folder.
2) Open its Properties, go to Security tab:
- remove all access rights,
- add full access rights for some user, that you are not currently logged in as, but also not for Administrator (for example add access rights for Guest).
3) Try going into "C:\Test" - TC says "Access denied on file". Now:
- Windows XP and older: press "As Administrator" button, enter user name (Guest in this example) and his password - now you have access to the folder,
- Windows Vista and newer: press "As Administrator" button, allow UAC to go on - by using tcmadmin.exe, TC tries to access "C:\Test" as Administrator, but the folder has no access rights for Administrator, tcmadmin.exe silently fails and nothing happens.
Solution: when tcmadmin.exe returns an error code (or only some specific error code?), TC should perform same procedure as in older Windows versions - ask for user name and his password.
Regards
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
It's not the same: On XP, TC starts tcmadmin.exe with the credentials of the specific Administrator user. On Vista and newer, TC starts tcmadmin with elevation. Apparently not even the elevated user has read rights to the file here, so access will of course fail.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
So maybe this should have been posted as a suggestion...
So my suggestion is: when tcmadmin.exe returns an error code (or only some specific error code?), TC should perform same procedure as in older Windows versions - ask for user name and his password.
After all, the goal for the user is to access the file or folder - so, if tcmadmin.exe fails, let's give the user a chance to enter his own credentials.
So my suggestion is: when tcmadmin.exe returns an error code (or only some specific error code?), TC should perform same procedure as in older Windows versions - ask for user name and his password.
After all, the goal for the user is to access the file or folder - so, if tcmadmin.exe fails, let's give the user a chance to enter his own credentials.
Last edited by MarcinW on 2014-09-22, 12:50 UTC, edited 1 time in total.
It is possible, you still can start programs under different user via context menu (just hold Shift to see extended menu items). But currently TC doesn't provide such function.
BTW I think under Windows XP it is still possible to get similar problem if you do some action using one credentials and then want to do some action using another one (when tcmadmin is still running).
BTW I think under Windows XP it is still possible to get similar problem if you do some action using one credentials and then want to do some action using another one (when tcmadmin is still running).
So I think there is no problem. We don't have to launch multiple tcmadmins at the same time - we can launch tcmadmin with elevation first, and if it fails (due to no file/folder access rights for Administrator), we ask user for credentials and launch tcmadmin with credentials given by him.MVV wrote:Problem is that you can't have multiple tcmadmins running with different credentials...
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
You can still do it via button bar, by calling the Windows "runas" program.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I think that there is no direct way to do this on Windows Vista and later. TC calls tcmadmin.exe with verb "runas" on XP and Vista/7/8, but it has different effects: While it shows the user/password dialog on XP, it uses the elevation mechanism on newer Windows versions. I don't know of any way to get the old behaviour also on Vista/7/8.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Use the verb "runasuser" to get the "Run As" dialog known from XP and earlier.ghisler(Author) wrote:I don't know of any way to get the old behaviour also on Vista/7/8.
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
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: