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 Sep 23 '14 at 22:29/su:otheruser@localhost:, for instance. – artagnon Sep 23 '14 at 22:51/sudo::is tramp shorthand forsudo:root@<hostname>:– phils Oct 06 '17 at 06:48