LoginSignup
0
1

More than 3 years have passed since last update.

macで su ログインできなかったので、、、

Last updated at Posted at 2019-12-17

状況

suでログインしようとしたら、

su:Sorry

ばかり言われてログインできなかった。
謝ってばっかじゃわかんねえよ。

てことでgoogle先生に聞いてきた。

原因

調べてみると、どうやらMacではデフォルトでrootのパスワードが設定されていないらしい。

設定方法

以下で設定できました。

$ sudo passwd root
Password:
Changing password for root.
New password:
Retype new password:

こんな感じで、ログインパスワードと新しいrootパスワードを要求されるので、それを打ち込めば自由にsuログインできるようになります。

それだけ。

0
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
0
1