rust-lang / rust-lang/rustup

target adding breaks sudo

Open
#3,327 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Problem

After rustup target add wasm32-unknown-unknown, my correct user password for sudo became invalid. And after i removed it with rustup target remove wasm-32-unknown-unknown, sudo started behave as normal

Steps
  1. Add target wasm32-unknown-unknown: rustup target add wasm32-unknown-unknown
  2. Try any command with sudo: sudo ls
  3. Get invalid password error
Possible Solution(s)

No response

Notes
$ uname -a
Linux artix 6.2.11-artix1-1 #1 SMP PREEMPT_DYNAMIC Sun, 16 Apr 2023 02:07:11 +0000 x86_64 GNU/Linux
Rustup version
rustup 1.25.2 (17db695f1 2023-02-01)
Installed toolchains
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/user/.rustup

stable-x86_64-unknown-linux-gnu (default)
rustc 1.69.0 (84c898d65 2023-04-16)

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 reported sequence with rustup target add wasm32-unknown-unknown, sudo ls, and rustup target remove wasm-32-unknown-unknown on the stated Linux environment. Investigate what changes during target installation and removal, then verify that sudo accepts the correct password while the target remains installed and after it is removed.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.