This account is currently not available.でsuで別ユーザに変更できない時

Sep 18, 2008
AD:

suでスーパユーザから別のユーザにログインできないとき

下記のようになった場合

Userの情報を確認する

/etc/passwdから、ユーザのシェルの設定を確認します。

「/nobin/nologin」になっていると、rootでもログインできないので、
「/nobin/nologin」を「/bin/bash」などにしてやるとログインできるようになります。

UserのShellの情報を編集する

更新

じょこさんからShellの変更方法について、指摘がありましたので、viで「/etc/passwd」を開いて直接変更する方法から、’usermod -s’のコマンドを使用して変更する方法に変更しました。

Related posts

AD:

3 Comments, Comment or Ping

  1. じょこ

    grep hoge2 /etc/passwd
    usermod -s /bin/bash hoge2

    でお願いします。

  2. mizoshiri

    ご指摘ありがとうございます。
    変更させてもらいました。

  1. よくきたはてダ - Dec 20th, 2009

Reply to “This account is currently not available.でsuで別ユーザに変更できない時”

You must be logged in to post a comment.

Search Keyword

Meta

face Ayumi Mizoshiri
WEB developer

FacebookPage

Popular Posts

Sorry. No data so far.

ARCHIVES