【发布时间】:2014-08-08 01:49:46
【问题描述】:
我正在关注 Capistrano (http://capistranorb.com/documentation/getting-started/authentication-and-authorisation/) 的设置指南。但是我发现我无法使用锁定用户(“部署”)进入计算机。我检查了/var/log/auth.log,它说:
sshd[29163]: User deploy not allowed because account is locked
sshd[29163]: input_userauth_request: invalid user deploy [preauth]
在我使用passwd -u deploy 解锁用户后,我可以通过 ssh 进入计算机。
我检查了 passwd 的手册页,上面写着:
-l, --lock
Lock the password of the named account. This option disables a password by changing it to a value which matches no possible encrypted value (it adds a ´!´ at the
beginning of the password).
Note that this does not disable the account. The user may still be able to login using another authentication token (e.g. an SSH key). To disable the account,
administrators should use usermod --expiredate 1 (this set the account's expire date to Jan 2, 1970).
Users with a locked password are not allowed to change their password.
从部分“请注意,这不会禁用帐户。用户可能仍然能够使用另一个身份验证令牌(例如SSH密钥)登录。”看来我应该能够在用户锁定的情况下通过 ssh 进入计算机,但这不是我所看到的。有谁知道为什么?我正在运行 Ubuntu 12.04.4 LTS。
【问题讨论】:
标签: linux ssh capistrano