Write a script to do what you want and make this script the login shell of
the user. If the user passes your test, exec a regular shell
(bash/ksh/csh/whatever) to allow him to continue. Else display a message
and exit (effectively login the user out).

-Naren

 On Wed, 6 Feb 2002, Madhurjya P. Bora wrote:

> Hi All!
> 
> How to block a particular user from loggin in. I can do it by disabling
> the account (through linuxconf etc.), but I want some program to check
> certain condition (say whether he or she has paid a due) on an user
> login and block it temporarily if the conditions are not met. Any clue
> will be welcome,
> 
> Madhurjya
> 
> _______________________________________________
> linux-india-help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/linux-india-help
> 



_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to