Everyday Usage #6250
Unanswered
ppo
asked this question in
Everyday usage
Everyday Usage
#6250
Replies: 2 comments 10 replies
-
Yes, see Homebrew/brew#17694 it's a security measure. |
Beta Was this translation helpful? Give feedback.
4 replies
-
@ppo, if the issue you're facing is Homebrew's resetting of sudo credentials forces reauthentication after faketty() {
if [[ $(uname -s) == Darwin ]]; then
# BSD/macOS script
script -qF /dev/null "$(printf "%q " "$@")"
else
# GNU/Linux script
script -qefc "$(printf "%q " "$@")" /dev/null
fi
}
% sudo -v # requires password
% sudo ... # doesn't require password
% faketty brew ... # may require password
% sudo ... # doesn't require password |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew config
Output of
brew doctor
Description of issue
It seems that executing
brew
terminates thesudo
session immediately (at least withupdate
,outdated
, andmissing
; NOThelp
). Is that normal, the desired behavior?If so, how can I make
brew upgrade --cask
ask only once my password? (As I launch it and do something else, then forget to check)% is_sudo_active [13:26:14] sudo NOT active % sudo -v Password: % is_sudo_active [13:26:37] sudo active % brew update ==> Updating Homebrew... Already up-to-date. % is_sudo_active [13:26:43] sudo NOT active
Beta Was this translation helpful? Give feedback.
All reactions