trifectatechfoundation / trifectatechfoundation/sudo-rs
`sudo --login` not working on Arch Linux
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 4.5k
- Forks
- 179
- Avg merge
- 16h 45m
- Merged PRs (30d)
- 4
Description
Describe the bug
Whenever I try to use the --login option I instantly get an AuthError. No password prompt is shown.
This is on Arch Linux on Windows Subsystem for Linux on Windows 11.
To Reproduce
- Setup Arch linux on WSL2 and login as root
- Download and extract rust-rs:
pacman -S --needed wget # Install wget
wget https://github.com/memorysafety/sudo-rs/releases/download/v0.2.2/sudo-0.2.2.tar.gz
tar xf sudo-0.2.2.tar.gz --strip-components=1 bin/sudo
- Reproduce the error:
# ./sudo --login echo hello
sudo-rs: PAM error: PAM returned an error (AuthError): Authentication failure
Expected behavior
Either receive a password prompt, OR execute echo hello.
Environment:
- Linux distribution: Arch Linux on WSL on Win11.
sudo-rscommit hash:f317145(Version 0.2.2)
(I also tried with a manual compile of master (ebd3e60) and got the same error.
Additional context
No additional context.
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 with the sudo --login entry point and the PAM authentication path, then run the Arch Linux on WSL2 reproduction from the issue. Done means ./sudo --login echo hello either prompts for a password or executes echo hello instead of returning AuthError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust
- Domain
- authentication, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100