Skip to content

Commit

Permalink
Merge pull request #33 from TelekomLabs/locked-accounts
Browse files Browse the repository at this point in the history
improvement: added faq on locked accounts to readme
  • Loading branch information
chris-rock committed Jul 29, 2014
2 parents 9b3e5e3 + 1454a35 commit a193dce
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,24 @@ bundle exec kitchen test default-ubuntu-1204

For more information see [test-kitchen](http://kitchen.ci/docs/getting-started)

## FAQ / Pitfalls

**I can't log into my account. I have registered the client key, but it still doesn't let me it.**

If you have exhausted all typical issues (firewall, network, key missing, wrong key, account disabled etc.), it may be that your account is locked. The quickest way to find out is to look at the password hash for your user:

sudo grep myuser /etc/shadow

If the hash includes an `!`, your account is locked:

myuser:!:16280:7:60:7:::

The proper way to solve this is to unlock the account (`passwd -u myuser`). If the user doesn't have a password, you should can unlock it via:

usermod -p "*" myuser

Alternatively, if you intend to use PAM, you enabled it via `['ssh']['use_pam'] = true`. PAM will allow locked users to get in with keys.

## Contributors + Kudos

* Dominik Richter
Expand Down

0 comments on commit a193dce

Please sign in to comment.