A real hack way to "lock my tty"

Joseph Minieri gt0815c at prism.gatech.EDU
Fri Sep 28 23:54:58 AEST 1990


Compile this program and run it - I think it works better and is less a "hack":

#include <signal.h>

main()
{
	char test[100];     

	signal(2,SIG_IGN);
	signal(3,SIG_IGN);
	signal(15,SIG_IGN);
	signal(18,SIG_IGN);

	strcpy(test,getpass("Key:"));
	if(0 == strcmp(getpass("Again:"),test) ) {
		while(0 != strcmp(test,getpass("")));
	}
}

Joe Minieri



More information about the Comp.unix.misc mailing list