tetuo41の日記

日々の生活で起こる心の揺れを書きます!!

Linuxでログイン出来ないユーザをログイン出来るように変更する

[bash]

$ su testuser

This account is currently not available.

[/bash]

↑こんなヤツが出る場合

testuserには「/sbin/nologin」が設定されている

なので「/bin/bash」に変更して上げる

[bash]

$ usermod -s /bin/bash testuser

[/bash]


参考URL:

http://server-setting.info/centos/login_user.html