If you want to edit files owned by other users (or root) in TRAMP, you should note the following:
- Make sure that the
sudoersfile includes/bin/shin the list of allowed programs. - You can then use the syntax
/plinkx:[session-name]|sudo:[session-name]:/path/to/filenameto access sudo protected files.