Re: Replacing nano-default-editor doesn't affect visudo
Chris Adams <[email protected]>
| Newsgroups | gmane.linux.redhat.fedora.devel |
|---|---|
| Message-ID | <[email protected]> |
Once upon a time, Neal Gompa <[email protected]> said: > That said, visudo probably needs a patch to respect the EDITOR variable. visudo DOES respect the EDITOR variable. However, running a command directly with "sudo <command>" does not SET the EDITOR variable. It's not safe to pass through the user's EDITOR setting (as that can open up a whole set of security issues), and when sudo runs a command without a shell, most environment is not set (you can see this with "sudo env"). -- Chris Adams <[email protected]> -- _______________________________________________ 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