Skip to content

Handle missing /etc/sudoers with grace #1306

@squell

Description

@squell

Describe the feature you'd like see implemented in sudo-rs
If /etc/sudoers is missing, give a better error message than "file not found".

or

do something else that can be appropriate: interpret a missing sudoers file as:

  1. All settings have their default value (like an empty sudoers file)
  2. There is the implicit rule, which does what people naively expect sudo to do: grant escalationg privileges to people in the sudoers group.

What problem can be solved with this feature?
Users can end up in this situation by the present state of some packaging, or if they install our tarballs on a clean sudo-less system without creating a /etc/sudoers.

Additional context
I don't think the situation where a missing /etc/sudoers is interpreted as %sudoers ALL=ALL diminishes security: the /etc/sudoers file is considered part of the trusted config...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions