Jonathan Wakely wrote:

> Is there a better way to "fix" visudo to use vim, without having to
> manually edit config files or use sudo --login every time? If not,
> should we add one?

It seems like an oversight that `visudo` must run as root, and cannot edit 
`/etc/sudoers` via, effectively, `sudo --edit`.  Perhaps that’s worth a feature 
request?

Meanwhile, one could write a wrapper script to do this.  That’s essentially 
what I did specifically for Emacs as a part of 
https://gitlab.com/mavit/etc-sudoers-mode

-- 
Peter Oliver
-- 
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to