void-linux / void-linux/void-packages

sudo: reinstall (-ff) deletes /etc/sudoers without restoring it

Open
#61,532 1 comment 0 reactions 0 assignees View on GitHub

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
  1. sudo xbps-install -ff sudo
  2. sudo ls
  3. Crash: (sudo: unable to open /etc/sudoers: No such file or directory)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.