Repeated Password Prompts When Uninstalling Casks with zap
Stanzas
#196281
Labels
stale
Issue which has not received any feedback for some time.
zap
Stanzas
#196281
Verification
--force
.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
When uninstalling or upgrading certain casks with
zap
stanzas, I am prompted to input my password repeatedly for each privileged operation. This occurs even though I have granted "Full Disk Access" and "App Management" permissions to my terminal application (iTerm.app
).For example, when uninstalling the
cleanmymac-zh
cask, I am asked to input my password multiple times for variouslaunchctl
and file removal operations. Here's the output:This repeated password prompting makes the uninstall process inconvenient, especially for casks with numerous associated services and privileged files.
Steps to Reproduce
zap
stanzas that include privileged files outside the~/Library
directory.brew uninstall --cask <cask-name>
orbrew upgrade
(if the cask upgrade triggers azap
operation).Expected Behavior
Ideally, the password should be cached for the duration of the uninstall or upgrade operation, so users only have to enter it once.
Actual Behavior
The password is requested multiple times during a single uninstall or upgrade operation.
System Information
iTerm.app
Additional Notes
sudo
, only request the password once per session.Thank you for your help in addressing this issue!
Command that failed
brew uninstall --cask
Output of command with
--verbose --debug
Output of
brew doctor
andbrew config
Output of
brew tap
The text was updated successfully, but these errors were encountered: