Super User is a question and answer site for computer enthusiasts and power users. 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 want to edit files on Unix/Linux servers from my PC (running Linux and/or Windows). However due to security, I cannot log into the remote server as the file owner, but as my named user, then sudo su to file owner and then get the directory and file listing and edit the file.

Is there a editor or plugin for any editor that could connect to remote machine and execute needed commands after doing sudo su -? Or something similar?

share|improve this question
Emacs can do it: – legoscia Jun 7 '13 at 14:56
Is there any reason to do sudo su user instead of su user? Or sudo su instead of sudo -i or just su? – terdon Jun 7 '13 at 20:41
@terdon - Unfortunately, yes. We have to do sudo since that way users enter their own password to switch to another user. – dsmoljanovic Jun 10 '13 at 13:45
@legoscia - thanks, i was planning on learning emacs. but i'm more used to vi. – dsmoljanovic Jun 10 '13 at 13:47

You must log in to answer this question.

Browse other questions tagged .