Sublime Forum

Subl command failure mode (OS X, ST3)

#1

[code]# use sudo to edit a file with sublime
sudo subl /etc/paths.d/something

permission denied when saving file

use sudo to edit a file witih emacs

sudo emacs /etc/paths.d/something

file is saved ok

[/code]

0 Likes

Subl does not work via sudo or as root under OS 10.9.1
#2

bueller? …
bueller?

subl is an executable shipped with sublimetext, so please fix it so that it works correctly when invoked with sudo.

I have noticed that if I set “atomic_save”: false, then I can successfully save, but I have to authenticate twice, once for sudo and once when sublimetext tries to save.

0 Likes

#3

Just tested on OS X 10.8 ST3 and works fine for me with “atomic_save”: true. Granted I do experience the double auth like you’ve stated.

0 Likes