Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!zehntel!hplabs!hao!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn) Newsgroups: net.unix-wizards Subject: Re: updating an executing setid file when not root Message-ID: <3927@brl-tgr.ARPA> Date: Mon, 20-Aug-84 02:54:08 EDT Article-I.D.: brl-tgr.3927 Posted: Mon Aug 20 02:54:08 1984 Date-Received: Tue, 14-Aug-84 05:05:44 EDT References: <286@ihu1h.UUCP> Organization: Ballistics Research Lab Lines: 6 ? 4.2BSD DOES have the new three-parameter open(2). You can only set the set-[ug]id bits if the effective ID matches to file-owner ID, or if the effective ID is 0. One thing that may be tripping you up is that any write to the file will clear the set-[ug]id mode bits (this is another 4.2BSD incompatible feature). Try chmod(2) after you have finished writing the file.