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.