On Tue, Aug 10, 2021 at 11:11:24AM +0200, Roger Price wrote:
My impulse would be to use VISUAL=/usr/bin/emacs visudo -f /etc/sudoers
(for the OP:) the tool "visudo" is a wrapper around an editor (despite its name, the editor does not have to be vi, as Roger demonstrates here) that launches your preferred editor (one way to specify that is by defining it in the VISUAL environment variable, as here) editing /etc/sudoers. But when you quit the editor, visudo sanity checks the resulting file before copying it into place. It's a useful safety check to prevent you accidentally breaking the sudoers file and locking yourself out of gaining superuser on your machine. -- Please do not CC me for listmail. 👱🏻 Jonathan Dowland ✎ j...@debian.org 🔗 https://jmtd.net