Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew breaks sudo password cache #17905

Closed
3 tasks done
r-feldbinder opened this issue Jul 30, 2024 · 1 comment
Closed
3 tasks done

brew breaks sudo password cache #17905

r-feldbinder opened this issue Jul 30, 2024 · 1 comment
Labels
wontfix Will not fix this issue

Comments

@r-feldbinder
Copy link

brew doctor output

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  python-packaging

Verification

  • My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update twice and am still able to reproduce my issue.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

HOMEBREW_VERSION: 4.3.12
ORIGIN: https://github.com/Homebrew/brew
HEAD: 874d2da45344d3b27aa740e555b0210d8c474220
Last commit: 8 hours ago
Core tap JSON: 30 Jul 13:41 UTC
Core cask tap JSON: 30 Jul 13:41 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 3.3.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.4/bin/ruby
CPU: dodeca-core 64-bit arm_blizzard_avalanche
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.3.1-arm64
CLT: 15.3.0.0.1.1708646388
Xcode: 15.4
Rosetta 2: false

What were you trying to do (and why)?

I want to type a sudo password only once during a timeout period.

What happened (include all command output)?

After any brew command, any sudo command aftwards requires the password, even when I entered it just before.

What did you expect to happen?

That the sudo password cache does not expire when using brew commands

The following might ask for the sudo password first

sudo -v
brew --help
sudo -v

But since a brew update today it also always asks it after the brew command even though it should be still in the sudo cache

Step-by-step reproduction instructions (by running brew commands)

Just run


sudo -v
brew --help
sudo -v

and see if it asks for the sudo password after the brew command

@r-feldbinder r-feldbinder added the bug Reproducible Homebrew/brew bug label Jul 30, 2024
@carlocab
Copy link
Member

This is likely a WONTFIX, sorry. We clear the sudo password cache intentionally as a precaution against privilege escalation attacks. See https://brew.sh/2024/07/30/homebrew-security-audit/.

@MikeMcQuaid MikeMcQuaid closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 2024
@carlocab carlocab added wontfix Will not fix this issue and removed bug Reproducible Homebrew/brew bug labels Jul 30, 2024
@MikeMcQuaid MikeMcQuaid pinned this issue Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix Will not fix this issue
Projects
None yet
Development

No branches or pull requests

3 participants