Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Lion and every time I edit a file, TextMate prompt me for my password.

Is there a way to bypass that?

share|improve this question

migrated from Oct 19 '11 at 8:58

This question came from our site for professional and enthusiast programmers.

Hi there. I voted to move this to since it is more of a general computer question than a programming question. You should get much better answers over there. Cheers! – e.James Oct 19 '11 at 1:48
My bad! Thanks for voting to move it. – Waley Chen Oct 19 '11 at 2:05
I reworded your question so that it's not the same thing as the question. I added (and assumed) that you're trying to edit system files, if that is not correct, please edit the question to remove that part. – Loïc Wolff Oct 19 '11 at 9:06
So you're being prompted for a password every time you try to edit any file in TextMate? Does this happen if you use another program to edit the files (like, for instance, TextEdit)? – Daniel Nov 9 '11 at 3:52
yeah same thing happens, but this time i got it to work :p, chmod ugo+w * everything in the project, thanks for the push :) – Waley Chen Nov 10 '11 at 5:46

Chances are you are trying to save your file somewhere other than under your home directory. In my experience, Textmate Save dialogs often default to the system root directory. If you try to save there, you will get an authentication request as you normally would not have write permission. Expand the Save dialog box and choose somewhere in your home directory tree.

share|improve this answer
I don't think I'm saving in my home directory. I'm saving in "/users/myusername/rails_projects". – Waley Chen Oct 20 '11 at 2:06
@WaleyChen /Users/MyUsername/ is equal to ~ your home directory, everything below it, ie. rails_projects should have permissions set to you, if not, you can change it with chown username filename – Slomojo Oct 20 '11 at 2:55
Still getting blanks. I used chown and chmoded everything on the file hello.txt "-rwxrwxrwx 1 nikeelevet staff 3 19 Oct 23:01 hello.txt" but TextMate still opens a blank file. I think this might be a tricky problem ... – Waley Chen Oct 20 '11 at 3:08
up vote 0 down vote accepted

Just chmod -R ug+w project-dir (starting from the root of the project)

share|improve this answer
This leaves all files world-writable which might be dangerous -> isn't chmod -R u+w enough? – patrix Nov 11 '11 at 20:57
you're right, it's dangerous, seems that I need at least chmod -R ug+w access though to not get textmate to ask for my pw, thanks! – Waley Chen Nov 13 '11 at 0:46
"world"-writable, for the world of people who have an account on your machine. Could be dangerous in some contexts, but... – Daniel Nov 13 '11 at 3:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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