Skip to content
TopicTracker
出典 HackerNews原文を表示
翻訳言語翻訳言語

Macでターミナルコマンドのペーストやスクリプトがブロックされる場合

Macでターミナルにペーストしたコマンドやスクリプトがブロックされる場合の対処方法を説明します。macOSには悪意のあるコードの実行を防ぐため、コマンドのペーストを確認するセキュリティ機能が搭載されています。この記事では、その機能を理解し、信頼できるコマンドを安全に実行する手順を紹介します。

背景メモ

アップルがmacOS Sequoia(macOS 15)で導入した「ペーストブロッカー」機能に関するサポート文書。ターミナルやテキストエディットなどに誰かから受け取ったコマンドやスクリプトをペーストしようとすると、macOSが自動的にブロックし「貼り付けようとしています…」という確認ダイアログを表示する。これはクリップボード経由での悪意あるコマンド実行を防ぐセキュリティ強化策で、システム設定>プライバシーとセキュリティ>セキュリティの「ペーストの確認」からオフにもできる。

関連記事

  • The article criticizes the declining quality of macOS app icon design, arguing that Apple's push toward uniform squircle shapes and simplified aesthetics has made modern icons look worse than older, more distinctive designs. It notes that even third-party developers are constrained by Apple's rules, while a few apps like BBEdit and Fantastical still maintain strong icon identities.