[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: prevent user from login?



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

Attachment: signature.asc
Description: Digital signature


Reply to: