trifectatechfoundation / trifectatechfoundation/sudo-rs
"I'm afraid I can't do that" error message is unclear
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 4.5k
- Forks
- 179
- Avg merge
- 16h 45m
- Merged PRs (30d)
- 4
Description
When a user is not in the sudoers group, the error message displayed is:
sudo: I'm sorry [user]. I'm afraid I can't do that.
Now, I appreciate a HAL 9000 reference as much as anyone, but an error message isn't really the place for that - it should tell the user as much as possible about what is wrong and why. The normal sudo error message is much more helpful:
[user] is not in the sudoers file.
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
Search the sudo-rs source for the exact “I'm sorry” or “I'm afraid I can't do that” message and trace the path for users who are not in the sudoers group. Update the message so it clearly explains the authorization problem, then verify the resulting output for that case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- authorization, cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100