2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【MacOS】root権限を使用するには?

Posted at

はじめに

パッケージなどをインストールする時に使うroot権限について、Macでの使用方法を説明します。

root権限の使用方法

root権限の使用方法は主に2つ

1. Terminalでsudo(SuperUserDO)を付けて命令を実行
2. rootユーザとしてログイン

一般的には、rootユーザとしてログインすること自体セキュリティ上好ましくないため、rootユーザとしてログインするよりもsudoを付けて命令を実行するやり方が好まれている。

また、MacOSの初期設定では、ルートユーザが無効となっているため、設定を有効にしなければならないなど、それなりに手間がかかる。

MacOSでrootユーザとしてログインするには?

ある程度の手間をかけてもrootユーザとしてログインしたい、そして権限を用いたい場合は、以下のApple公式サイトに設定方法がわかりやすく書いてあるため、参照すると良い。

Apple|Macでルートユーザを有効にする方法やルートパスワードを変更する方法

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?