Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
hostsファイルを定期的に編集するOS Xアプリを計画しています。スーパーユーザーのパスワードを要求された場合、これはユーザーにとって非常に迷惑だと思います。コードを介してパスワードを入力したり、hostsファイルのプロパティを変更して、アプリがインストール中に変更できるようにすることは技術的に可能ですか?
簡単に言えば、いいえ、hosts ファイルには root アクセスが必要です。