Sign up ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

On a couple of servers I work on, despite having access to edit files and all else, there is the occasional need to gain elevated privileges (like running sudo) with the file to actually save the changes.

That said I like working with my files in Coda 2 and not the Terminal directly. So is there either a way to sudo the file open through the explorer when viewing the remote files, or is there a way to trigger a file to open through the built-in terminal in Coda 2 so I can make the edits, save, and move on.

Currently when I double click on a file to open it, if I would need elevated privileges, the file will open only in a read-only state.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

No, it can not. Coda 2, Coda, and Transmit all allow you to SFTP into a box, but when you try to access a file that is not in your user's accessible range, you have to log out and then log back in as a user who can.

I use Transmit and Coda 2 constantly and just have made it to where I am only signing in as root because I ended up having to log in as different users to access one file and then a different file.

I wish there was another way around it, like being able to have Transmit, Coda, or Coda 2 push some kind of command to the server or something but it isn't possible in any of the Apps current states. I would highly recommend doing a feature request to them, I can't see how we would have been the only people who have ever wanted this.

I would recommend trying to contact them through their twitter account. They are pretty cool guys and have responded to things like this before on Twitter.!/panic

I know it wasn't the answer you were probably looking for but I hope it helps.

share|improve this answer
I couldn't agree more. It'd be lovely if lets say like "Windows" when you right click on a file you can "Run it as Administer" if Coda 2 could add that, it would make life easier, kinda like "Open with sudo". My thing is my user has sudo rights, but in many cases I have to explicitly do "sudo ....." then rekey my password, if an option on Coda could be done like that even if it prompt for password in the process things would be awesome. – chris Jun 18 '12 at 23:35
@Chris That would be a nice feature, I highly recommend shooting them that feature request. It is probably something that they want to implement anyway and the more who ask only helps spure them on. – de_an777 Jun 19 '12 at 2:15
point taken, and will be done – chris Jun 19 '12 at 2:24

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.