Up: Tramp   [Index]


13.7.1 Open a File with Root Privilege

To open a file as Root owner from within Emacs, use the Tramp package as follows:

C-x C-f
/sudo::<path/to/file>

Tramp provides access to files that Emacs cannot open directly.

/sudo::’ is shorthand for ‘/sudo:root@<hostname>: