0

Setup: local machine has PopOS 20 (based on Ubuntu 20), remote server is running Raspbian Stretch.

I have been editing files on the remote server from the terminal, over ssh and with nano, but I'm starting to find this set up quite laborious. I have found different solutions on-line:

  • I connected the remote server to the local machine's file manager, which proved straightforward and convenient but does not allow me to edit files that require sudo privileges
  • I found the RemoteSubl plugin for Sublime Text, a text editor that I know well and find very comfortable, but I cannot find a way to edit files with root privileges.

Is there a way to gain root privileges on either of those solutions? Or are there any alternative you would suggest as optimal in terms of security and usability?

4
  • 1
    I find sudo reminds me these files are vital and do not fiddle with them that much. You could always set up Samba/NETATALK to use the root user BUT files created in home folders will be owned by root and that gives normal users issues then running them. It really is not good just to use root - basics of security teaches give users the minimum to do their job and no more. (Says the guy who has just been notified his old email along with 68 million others has been leaked again).
    – user115418
    Commented Jun 3, 2020 at 13:06
  • Emacs and TRAMP.
    – Swedgin
    Commented Jun 3, 2020 at 13:38
  • Thanks @Swedgin, I am not familiar with Emacs but it seems to do exactly what I need. I wonder if I could do something similar with other text editors.
    – Fede9390
    Commented Jun 3, 2020 at 14:32
  • No sorry. Another way would be to edit your sudoers file (on the server) and set the useraccount to not have to enter password, or just for nano. E.g something like this: unix.stackexchange.com/questions/18830/…
    – Swedgin
    Commented Jun 3, 2020 at 18:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.