-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WinFile screwing up NTFS permissions on Paste #276
Comments
Interesting. What are the acls of the file in the source location? It may not matter, but I'm curious. |
The source is a clipboard paste over RDP. On the source PC which the RDP client is running it does not matter where, i.e. C:\files\ would be the same. |
It is possible that rdp (rdpclip.exe?) creates the file in a temporary location i.e. the user's %temp% folder before putting it into the requested location, but I haven't tested it so I am not sure. |
Another thing I thought of: WinFile uses a very old clipboard format; perhaps older format (which Explorer does not use) triggers the different behavior. |
@29039 Can you confirm this is a copy rather than a move? WinFile was designed for NT 3.x (or earlier.) Windows 2000 added inherited ACLs. Renames do not manipulate ACLs - the ACL of the source file is retained in the target name, and the parent's ACL is ignored. Explorer has extra code to call SetNamedSecurityInfo to force inheritable parent ACLs to be applied. WinFile doesn't have this code, since by Windows 2000 updating it wasn't a priority. |
I tested again while RDP to a Windows 11 box while running process monitor. Steps:
[Confirm Mouse Operation [X]]
|
I was RDP into my PC and copy & paste a .dll file across to work with my app. Instead of pasting using the File Explorer as I typically would, I was feeling Nostalgic and used the Paste function in WinFile.
After a bit of troubleshooting why my app wasn't working, I found that there were "Access Denied" errors on that file when using procmon to view it.
This was very strange, especially considering that the app was running as SYSTEM.
I figured out, there is something in the way that WinFile pasted the file which made it give the pasted file explicit permissions which weren't quite right as opposed to just allowing inheriting.
The text was updated successfully, but these errors were encountered: