How to lock a users account.
A normal user joe would have an entry in /etc/passwd such as,
joe:x:1000:100:Joe Smith,,,:/home/joe:/bin/bash
To lock this account, all you have to do is replace the :x: with :*: as in
joe:*:1000:100:Joe Smith,,,:/home/joe:/bin/bash
[Click to add or edit comments])
Please prepend comments below including a date