How to make elevated save files without asking permission?

I am using Sublime Text 2 on my Mac (10.9)

It is rather strange that for more than 3 months it has been working fine. Today, I am unexpectedly asked to enter an administrator password to save the file.

I installed this very popular plugin today. But I do not know why this is connected.

It’s very unpleasant to enter an administrator password every time I save a file (actually not every time, but quite often)

Is there anything I need to check?

Thanks!

+8
sublimetext2 sublimetext
source share
5 answers

I found out that these files were created by vim when I use my Mac as root . Thus, with chown myusername filename problem is resolved.

In any case, I'm not sure if this is 100% reliable, because I have not repeated it many times.

+13
source share

you can use

 sudo chown -R myuser folder/* 

to change the resolution recursively in the application

+8
source share
 sudo chown username -R . 

this changes the file resolution of the current directory recursively

+6
source share

The beginning of sublime with sudo worked for me like:

 sudo /opt/sublime_text/sublime_text 
+1
source share

Run the sublime using the following simple command. After starting, it will not ask for a password for each save.

 sudo subl 
0
source share

All Articles