Running sudo commands in org-babel
Tramp-mode is useful or running sudo commands in org-babel. Just add :dir /sudo::
to src block preamble like this:
#+begin_src sh :dir /sudo::
sudo blkid
#+end_src
and in the bottom line Emacs will ask you about the password.
Links
org-mode org-babel sudo