Skip to main content
2 of 3
Just about anything is text editing. This question is specifically about files. Also English corrections.

Edit file with super-user rights

When you have to edit system files, it's an usual situation that you launched Emacs with a normal user before, so the file will be write-protected. What can I do to gain root privileges? I mean something like M-x sudo from dired.

I don't want to launch Emacs as super-user and I don't want to quit it.

smonff
  • 1.6k
  • 1
  • 16
  • 20