On Mon, Jun 29, 2020 at 3:17 AM ToddAndMargo via users
<users@lists.fedoraproject.org> wrote:
> On 2020-06-28 17:58, Ed Greshko wrote:
>>
>> I've used plain old vi to edit the /etc/sudoers file and the change
>> take effect immediately.
>
> This must have changed in the last few releases. I always
> had to use sudovi or reboot. I never got away with just vi.

It's an ro file, so you have to save it with ":wq!".

visudo's better because (1) it locks the file against simultaneous
edits, (2) it creates and edits files with the right mode, (3) it
checks the file syntax when closing it.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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/users@lists.fedoraproject.org

Reply via email to