From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20702 invoked from network); 12 Sep 2006 19:42:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,RCVD_IN_BL_SPAMCOP_NET autolearn=no version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Sep 2006 19:42:34 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 33098 invoked from network); 12 Sep 2006 19:42:25 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Sep 2006 19:42:25 -0000 Received: (qmail 11523 invoked by alias); 12 Sep 2006 19:42:22 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22696 Received: (qmail 11471 invoked from network); 12 Sep 2006 19:42:21 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Sep 2006 19:42:21 -0000 Received: (qmail 32284 invoked from network); 12 Sep 2006 19:42:21 -0000 Received: from sd-green-bigip-98.dreamhost.com (HELO spunkymail-a18.dreamhost.com) (208.97.132.98) by a.mx.sunsite.dk with SMTP; 12 Sep 2006 19:42:18 -0000 Received: from [192.168.1.2] (ppp-68-122-73-242.dsl.pltn13.pacbell.net [68.122.73.242]) by spunkymail-a18.dreamhost.com (Postfix) with ESMTP id 1E8B85B539 for ; Tue, 12 Sep 2006 12:42:16 -0700 (PDT) Mime-Version: 1.0 Message-Id: Date: Tue, 12 Sep 2006 12:16:40 -0700 To: zsh-workers@sunsite.dk From: Dave Yost Subject: builtin setuid and setgid commands Content-Type: text/plain; charset="us-ascii" ; format="flowed" Zshell should have builtins to call the setuid and setgid system calls. With this feature, one can write a shell script that is executed by root but runs as another user. The usefulness of this feature came up in the context of the mysql.server script, which starts/stops the server and is run by root at boot time. It would be nice if the script itself could use a setuid command to ensure that it is running as the mysql user. Thanks Dave