> I'd use this. Change the text to something meaningful and compile it.
>
> /*edit and compile cc -o alock alock.c
> * put it in /usr/local/etc or /usr/local/sys/bin
> * list it as a shell in /etc/shells
> * use it to lock accounts - even http
> *
> * Steph 1994, 1995 (stephie@wizvax.net)
> */
> #include <stdio.h>
> main()
> {
> printf("Your account has been locked for one of many\n");
> printf("possible reasons. Please call (704)274-1196 x126 or x133\n");
> printf("to discuss this.\n");
> fflush(stdout);
> sleep(5);
>
> }
Does this necessarily have to be a c program? Can it be a regular shell
script? I read somewhere that using a shell script to do something like
this creates a security hole. I was thinking something in the lines of
using a shell script to echo the message you have above, then calling
passwd so that the only thing users can do when telnetting in is changing
their password. What do you think?