trifectatechfoundation / trifectatechfoundation/sudo-rs

`sudo --login` not working on Arch Linux

Open
#832 20 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

external-packaging
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

  1. Setup Arch linux on WSL2 and login as root
  2. 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
  1. 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-rs commit 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.