How to disable account on OS X Mavericks
You can disable a user account by setting their shell to /usr/bin/false.

Either run chsh -s /usr/bin/false &lt;username&gt;, or change it in Users &amp; Groups → Advanced Options. To change it back, run chsh -s /bin/bash &lt;username&gt;.