概要†Linuxユーザーを作成する際に、パスワードを-pで指定できるが、暗号化されていないパスワードとなるためSSH等でログインできないユーザーアカウントとなる。 内容†# useradd testuser -pHOGEPASS # cat /etc/shadow testuser:HOGEPASS:16111:0:99999:7::: # echo testuser:HOGEPASS |chpasswd # cat /etc/shadow testuser:$6$sCyzLSak0./48W$8UyyxppsDQRHL/mGb24.J58d7jL2uTPdNmihkyfKBobHJc0f.nONbyk8z9emn2FnIRkoM0d5x1ASWbU26V.dh0:16111:0:99999:7::: |