void-linux / void-linux/void-packages
sudo: reinstall (-ff) deletes /etc/sudoers without restoring it
Open
Nobody has claimed this yet.
bug
needs-testing
- Dominant language
- Shell
- Stars
- 3.4k
- Forks
- 2.8k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 299
Description
Is this a new report?
Yes
System Info
Void 7.0.14_1 x86_64 AuthenticAMD uptodate FFFFFFFFFFF
Package(s) Affected
sudo-1.9.17p2_1
Does a report exist for this bug with the project's home (upstream) and/or another distro?
No response
Expected behaviour
Running xbps-install -ff sudo should fully restore or overwrite all files, including /etc/sudoers
Actual behaviour
The file /etc/sudoers is completely removed from the filesystem
Steps to reproduce
- sudo xbps-install -ff sudo
- sudo ls
- Crash: (sudo: unable to open /etc/sudoers: No such file or directory)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with xbps-install -ff sudo, then inspect how the sudo package handles /etc/sudoers during forced reinstall. Done means the reinstall restores or overwrites /etc/sudoers and the follow-up sudo ls succeeds without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100