Thursday, March 01, 2018

Re: sudoedit for doas?

On 03/01/18 11:41, tomr wrote:
>
>
> On 02/28/18 17:50, Hess THR wrote:
>> Hello,
>>
>> hmm, I went through the relevant man pages:
>>
>> https://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/doas.1
>> https://man.openbsd.org/doas.conf.5
>>
>> but I cannot find a sudoedit alternative for the "doas".
>>
>> Are there any?
>
> Use `doas -C` in a wrapper script that:
>
> - checks for a lock / creates a lock
> - copies /etc/doas.conf somewhere
> - edits it with your editor of choice
> - checks it (with -C)
> - copies it back into place
> - removes the lock
>
> t
>
sudoedit != visudo

No comments:

Post a Comment