Privilege Escalation in Sublime Text 2

I’ve been using Sublime Text 2 for the past few weeks, in place of my usual text editor, TextMate. One thing I’ve come across a number of times has been this:

  1. Open a file from the command line, that has an owner and group that the current user doesn’t have rights to change.
  2. Make changes.
  3. Try to save said file.

TextMate was very helpful in this regard; it popped up a dialog to allow one to authenticate as a privileged user and allow the save to proceed. Sublime Text 2’s current version doesn’t do this, but instead fails with an error message.

After becoming frustrated with this scenario the past couple of days, I tried the development build of ST2 (build 2216), and it now works similarly to TextMate. Nice!


Home