ninxsoft / mist-cli

A Mac command-line tool that automatically downloads macOS Firmwares / Installers.
MIT License
620 stars 29 forks source link

IPSW Permissions Not Readable by Everyone #61

Closed nstrauss closed 2 years ago

nstrauss commented 2 years ago

On download I assume Mist inherits default permissions from the calling process. Since it must be run with sudo the resulting permissions are rw only for root.

-rw-------  1 root  wheel    13G Mar 24 16:59 /Users/Shared/Mist/Install macOS Monterey 12.2.1-21D62.ipsw

As a result the file isn't immediately usable with Apple Configurator 2. Please set the read bit for everyone (equivalent of chmod +r) post-download. Thank you!

Screen Shot 2022-03-24 at 5 12 39 PM

ninxsoft commented 2 years ago

Nice pickup, this should be a 1 line fix!

ninxsoft commented 2 years ago

Side note: mist download "Monterey" --kind ipsw no longer requires sudo privilege escalation. See: #48