Protecting games

Jack Jansen jack at vu44.UUCP
Sat Oct 1 06:31:32 AEST 1983


If you don't have sources of the games, you can always
try to set the environment variable SHELL to /usr/games/SHELL,
and let that be a program that does
	main(argc,argv) char**argv;
	{
	  setuid(getuid()); setgid(getgid());
	  execv("/bin/sh",argc,argv);
	}
This way, users can get a shell, and you are protected.
(if the game understands about SHELL, of course)
	Jack Jansen, {philabs|decvax}!mcvax!vu44!jack



More information about the Comp.unix.wizards mailing list