LoginSignup
45
49

More than 5 years have passed since last update.

Ubuntuのrootパスワード設定

Posted at

Ubuntuはインストール直後はrootパスワードが設定されていないので、自身で設定し利用出来るようにする必要があります。
コマンドを忘れないようにメモ。

$ sudo passwd root
Enter new UNIX password:○○○○○○ ← 設定をしたいrootパスワード
Retype new UNIX password:○○○○○○ ← 設定をしたいrootパスワードを再度入力
passwd: password updated successfully

これでsu -でrootログインが可能になります。

$ su -
Password: ○○○○○○ ← 設定をしたrootパスワード
#

$が#に変わり、無事にroot権限に変わった事を確認する事が出来ました。

45
49
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
45
49