シェルスクリプトで次のことを行うにはどうすればよいですか?
$ su my_user
Password: my_password
Macにインストールする必要があるため、これは必須でありhomebrew
、.NET の下にはインストールできませんがsudo
、管理者権限が必要です。
$ sudo /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
Password:
Don't run this as root!
そして、これを現在のユーザー (管理者ではないユーザー) として実行できない理由 -
$ /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
This script requires the user to be an Administrator. If this
sucks for you then you can install Homebrew in your home directory or however
you please; please refer to our homepage. If you still want to use this script
set your user to be an Administrator in System Preferences or `su' to a
non-root user with Administrator privileges.
スクリプトを実行するために管理者としてログインするオプションはありません。スクリプトにログインする必要su
があります。