During installation, we don't require a root password to be set if a user with sudo (wheel) access exists. The only thing protecting a user from removing sudo with dnf by accident (perhaps in trying to remove vim-minimal) is one easily-misanswered prompt. I recommend adding a file /etc/yum/protected.d/sudo.conf with the contents sudo This will result in $ sudo dnf remove sudo Error: The operation would result in removing the following protected packages: sudo If someone _needs_ to shoot themselves in this particular foot, they could either `rm /etc/yum/protected.d/sudo.conf` first, or just use RPM directly and bypass DNF's protected-packages mechanism.
I just accidentally removed sudo on an F25 machine in exactly the way mentioned (by trying to remove vim-minimal) so I'd like to concur that this is a great idea! :)
build with sudo in protected packages present in rawhide
sudo-1.8.20-0.1.b1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-1efe08aafc
sudo-1.8.20-0.1.b1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-1efe08aafc
sudo-1.8.20-0.1.b1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.