On Sun, Sep 24, 2006 at 01:36:21PM +0800, Deephay wrote:
> Greetings all
>
> I want to disable certain user's login ability. Say, they are only
> some email accounts, I want to prevent them from login the system,
> they may only retrieve their emails through pop3 / IMAP, and these
> accounts are quite few, so I do not want to use approaches like
> vpopmail. Are there some way to prevent them from login? Thanks in
> advance!
>
sudo chsh -s /bin/false username
You can also specify the shell when you create the user account with
either useradd or adduser.
Regards,
-Roberto
--
Roberto C. Sanchez
http://people.connexer.com/~roberto
http://www.connexer.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFFFhvc5SXWIKfIlGQRAsy7AKCMy5T5R1c3TAMAcueQc99wslg3ygCfafGX
k32Kwok6G1z9fIIddeWkN7o=
=Wx3c
-----END PGP SIGNATURE-----