Sublime Forum

Unable to save C:\path\to\file.php Error: Access is denied

#1

Hello.
After updating from 3143 to 3170, I had an error trying to save changes to any file:

Unable to save C:\Users\Ivan\Desktop\test.php
Error: Access is denied.
At the same time, if you open Sublime Text 3 as administrator, there are no errors when saving files.
One would think that something is wrong with the rights of the edited files, but most likely the reason is in Sublime Text 3, because other text editors (Notepad ++, Windows Notepad, etc) can edit the same files without administrator rights.

Tried to roll back to version 3143, but there the error is saved. Those. it seems the version 3170 broke everything.
My working day is broken by this update.

OS: Microsoft Windows 10.0.16299.371 (x64).

I hope the error will be quickly fixed.
Sincerely.

0 Likes

#2

most likely, when you upgraded, you accepted a UAC prompt to elevate your permissions to an administrator’s. Then, you saved a new file, and it saved it under those credentials, so now with a standard user permissions, access is denied. Maybe the workaround is to restart ST (again) manually after using the auto-upgrade feature.

0 Likes

#3

Neither the ST restart, nor the Windows restart solved the issue.
Even the newly created files had the same error when they were saved.
It helped the complete removal of the ST and its new installation (the directory “C:\Users\User\AppData\Roaming\Sublime Text 3” I previously saved).
The question is solved.
Thank you for attention.

0 Likes