Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site omsvax Path: utzoo!linus!decvax!tektronix!ogcvax!omsvax!flamer From: flamer@omsvax.UUCP Newsgroups: net.unix-wizards Subject: Re: Protecting games Message-ID: <671@omsvax> Date: Thu, 22-Sep-83 23:12:46 EDT Article-I.D.: omsvax.671 Posted: Thu Sep 22 23:12:46 1983 Date-Received: Sun, 25-Sep-83 13:47:52 EDT References: <11812@sri-arpa.UUCP> Organization: Intel Corp. - Hillsboro,OR Lines: 6 Why not do a setuid(getuid()) immediately after forking and before the exec() ? The user in the subshell will get his own uid as the effective uid. When the subshell is terminated, you're back in the game with the suid.