Permission denied when saving files. Help me please¡


#1

Hello everyone…

I have put in the task of learning to program, I am doing a course and everything is going very well until I suddenly received this announcement and then I said what happened. I inquired for hours and the answer I saw was to open Atom with administrator permissions, I did it and it stayed the same, then I reinstalled the program and it lasted a few minutes working normally and then it failed again, it also disabled the antivirus. or something that affected him and nothing was solved … I would like your help since what I do not want is to change the text editor

Thank you


#2

How many users are on your computer?


#3

Hello Damned

Only 1 user in the system :frowning:


#4

Are you able to save that file with a different editor?


#5

Hello.

Is it possible for you to save the file under another file name?
Or at least copy the contents out to another file.

I have this happening on Windows7 at times.
Not yet in Atom… but for Servo Drive software from a Taiwanese company.

It is resolved when logging out the user from Windows and logging back in.
The downside is you loose unsaved work.

Sometimes it works to set the permissions on the file to the current user.
For this no log-out is required. Best to ask [web search] how it is done.

I hope you get this resolved.


#6

It is the first editor that I use :confused:


#7

Thank you for your recommendations, I will try to solve this problem as quickly as possible. :slight_smile:


#8

I want to know if the permission problem is just showing up in Atom or if other editors have to deal with it, too.


#9

With what editor do I try?
I do not know much

Someone that is very similar to atom


#10

I’m not suggesting that you switch editors, I just want you to perform an experiment with a different program in order to see if the permission issue is specific to Atom or not. Use whatever is on your computer.


#11

I already test with another editor and it works without problems


#12

Okay, does it happen when you start Atom from the command line with atom --safe?


#13

I got exactly the same problem.

  • I can open the file with atom.
  • If I try to ecit and save the file, I get the same Permission Denied Error.
  • It works to save the file with another name in the same directory.
  • atom --safe has the same behavior
  • Starting Atom with administraion rights leads to the same result
  • Editing the same file with notepad works fine.
  • There is only one User in the System, which also has full ownership rights to file

OS: Windows 10 Pro


#14

Do the suggestions and observations in the following link apply?

Additionally, did you make the file yourself, or did someone else?

(I have no idea what’s causing the issue, I just think this info would help anyone who tries to fix it)


#15

Antivirus disabled, still the same problem. I tried Brackets today and it had exactly the same problem. So my guess is, that it is something node.js related.


#16

Go to your root folder
Right click it and select properties
Under general, make sure the read only button is unchecked
Then click apply.
You might have to do it anytime it declines to save.