13

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

It's quite weird that for over 3 months, it works fine. Today it suddenly prompts me to enter the administrator's password to save a file.

I installed this very popular plugin today. But I don't know why this is connected.

It's quite annoying to enter admin's password every time I save a file (actually not every time but quite often)

Is there anything I need to check?

Thanks!

2
  • 1
    Have you checked the permissions on the folder/files you are working on? Dec 21, 2013 at 8:46
  • @SverriM.Olsen Oh, those files are created with vim. I think I know what's happening there. Thanks very much! Dec 21, 2013 at 8:47

6 Answers 6

17

I figured out that those files were created by vim when I am using my Mac as root. So with a chown myusername filename the problem solved.

Anyway I am not sure whether this is 100% reliable because I did not retry it for many times.

0
10

You can use

sudo chown -R myuser folder/*

to change the permission recursively in the application

9
sudo chown username -R .

this changes file permission of current directory recursively

1

starting sublime with sudo worked for me like:

sudo /opt/sublime_text/sublime_text
1
  • you can start sublime with following command sudo subl so do not need to enter path everytime Feb 16, 2017 at 15:01
1

Launch the sublime using the following simple command. Once you launched, it won't ask password for each time you save.

sudo subl
0

You may use,

sudo chown $USER -R .

To change current user permissions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.