Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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: stackoverflow.com/a/4725727/113848 –  legoscia Jun 7 '13 at 14:56
1  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.