?Rename fails silently if no permissions

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
sweetsour
Junior Member
Junior Member
Posts: 18
Joined: 2007-10-04, 18:06 UTC

?Rename fails silently if no permissions

Post by *sweetsour »

Win8.1 + TC 8.5 x64

I tried to rename a folder, and I had no permissions to do that (I think NTFS permissions). It just failed silently, as if the operation was successful (it was not). There was no error window, or a window asking for admin privileges.

In Windows Explorer I could rename it, it asked me for admin privileges.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I cannot confirm. I just tried the following:
1. Go to c:\Program files
2. Try to rename a folder with Shift+F6

Result: I'm getting an error message. When I choose "As Administrator", the folder is renamed as expected. Tested on Windows 8.1 x64 with TC x64.
Author of Total Commander
https://www.ghisler.com
sweetsour
Junior Member
Junior Member
Posts: 18
Joined: 2007-10-04, 18:06 UTC

Post by *sweetsour »

Yes actually I cannot do it simply either.

The buggy folder was on a HDD taken from another PC, therefore the NTFS permissions had user IDs which were unknown on this system. And my user had no permission. I think it might have been connected to that.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I see - then even admin rights wouldn't help.
Author of Total Commander
https://www.ghisler.com
sweetsour
Junior Member
Junior Member
Posts: 18
Joined: 2007-10-04, 18:06 UTC

Post by *sweetsour »

Well Windows Explorer asked for admin rights and it was able to rename it.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's strange because admin user doesn't see the same shares as logged in user...
Author of Total Commander
https://www.ghisler.com
User avatar
HolgerK
Power Member
Power Member
Posts: 5409
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Well, i guess the reason behind this is that Explorer asks for admin rights to change the permissions:
http://support.microsoft.com/kb/950934 wrote:You don’t currently have permission to access this folder. Click Continue to permanently get access to this folder.
After that even TC should have no problem to rename files in these locations.

2sweetsour
The following may be a workaround to not to start explorer to adapt permissions for folders created by other systems:
http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/

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

Post by *ghisler(Author) »

I prefer not to change the permissions - they are there for a good purpose, and the directories should remain protected during normal work.
Author of Total Commander
https://www.ghisler.com
Post Reply