2

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

Is there a way to bypass that?

4
  • 2
    Hi there. I voted to move this to www.superuser.com since it is more of a general computer question than a programming question. You should get much better answers over there. Cheers! Commented Oct 19, 2011 at 1:48
  • 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. Commented Oct 19, 2011 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
    Commented Nov 9, 2011 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
    Commented Nov 10, 2011 at 5:46

2 Answers 2

2

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.

3
  • I don't think I'm saving in my home directory. I'm saving in "/users/myusername/rails_projects".
    – Waley Chen
    Commented Oct 20, 2011 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
    – ocodo
    Commented Oct 20, 2011 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
    Commented Oct 20, 2011 at 3:08
0

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

3
  • This leaves all files world-writable which might be dangerous -> isn't chmod -R u+w enough?
    – nohillside
    Commented Nov 11, 2011 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
    Commented Nov 13, 2011 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
    Commented Nov 13, 2011 at 3:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .