Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!floyd!harpo!decvax!decwrl!sun!qubix!ios!richa From: richa@ios.UUCP (Rich Altmaier) Newsgroups: net.unix-wizards Subject: kernel recognizing #! scripts Message-ID: <117@ios.UUCP> Date: Thu, 8-Mar-84 16:33:19 EST Article-I.D.: ios.117 Posted: Thu Mar 8 16:33:19 1984 Date-Received: Sat, 10-Mar-84 10:45:44 EST Lines: 13 One advantage to having the kernel recognize #! scripts is that set-uid/gid mode works. Just as with a binary, the kernel recognizes this mode and starts the shell or whatever with appropriate effective uid/gid. On 4.1bsd, scripts without #! ignore set-uid mode. I don't think a shell could give the same functionality, with the exec() fail - recognize script approach. The set-uid mechanism is simple and useful, and I expect this is exactly why the kernel was made to recognize #!. Rich Altmaier, Integrated Office Systems. decwrl!ios!richa