Posts Tagged: command-line

How to Add a Linux User for Mail but Not Login

I’ve had to, from time-to-time, create users on Linux boxes that need to connect via IMAP to get email, but they can’t SSH or login to the server. There are certainly more elaborate ways to solve this problem, but here’s my ghetto solution. When creating the user set their shell to /bin/false. useradd –shell /bin/false… Read more »