The question pretty much says it all. I opened emacs as a regular user and am trying to edit something in the /etc/ folder (I know this is dangerous etc. etc.)
How can I do this?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
You could use https://stackoverflow.com/questions/95631/open-a-file-with-su-sudo-inside-emacs, for example
C-x C-f /sudo::/path/to/file