2
3

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 3 years have passed since last update.

rootログイン出来なくなった時の対処法

Posted at

はじめに

パスワードを忘れてログイン出来ない!
そんな時に対処した方法をさらっと自戒の意味も込めて書きます

前提

OS:RHEL7
接続端末:teraterm

やり方

①下記コマンドを実行する

# sudo su -

説明すると、
sudo は昇格コマンド
su はユーザー切り替えコマンドです

強制的にrootに昇格する方法です

②上記コマンドでrootになった後、下記コマンドを実行します。

# passwd root
 New Password : 新しいパスワードを入力する

以上が対処方法です。

同じ悩みを抱えていた方のお役に立てれば幸いです。

2
3
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
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?