open and save read and write protected files in emacs (sudo in emacs)

Often times i have emacs open, and would like to open and edit protected files. since i didn’t launch emacs as a root user via sudo, i won’t be able to do anything but close emacs and relaunch or use sudo vi on the file. googled it, this post shows how one can use tramp to open and edit those files with an existing emacs process.

About Vinh Nguyen

Statistician

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>