On 03/01/18 06:50, Solène Rapenne wrote:
> What you said mimics visudo (to edit sudo configuration file), not
> sudoedit which is documented in sudo(8) :
>
> 1.Temporary copies are made of the files to be edited with the owner
> set to the invoking user.
> 2.The editor specified by the policy is run to edit the temporary
> files. The sudoers policy uses the SUDO_EDITOR, VISUAL and EDITOR
> environment variables (in that order). If none of SUDO_EDITOR,
> VISUAL or EDITOR are set, the first program listed in the editor
> sudoers(5) option is used.
> 3.If they have been modified, the temporary files are copied back to
> their original location and the temporary versions are removed.
what is the reason for your obsession with sudoedit or visudo or
anything other than just editing the $%&^& file, saving your change and
testing them on another terminal window? Like is done on almost every
other config file in a Unix environment?
There is no pfconfedit, daily.localedit, virc.conf, dhcpd.confedit, and
we do just fine without it.
If you are so obsessed with doing things the sudo way, just use sudo
(from packages) as has been already said. Otherwise, just edit
doas.conf, test, and have a great day!
Nick.
No comments:
Post a Comment