From owner-freebsd-questions@FreeBSD.ORG Tue Feb 15 21:25:16 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9AC0D16A4CE for ; Tue, 15 Feb 2005 21:25:16 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC7B243D45 for ; Tue, 15 Feb 2005 21:25:15 +0000 (GMT) (envelope-from oliverfuchs@onlinehome.de) Received: from [212.227.126.208] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1D1AC2-0001Ap-00 for freebsd-questions@freebsd.org; Tue, 15 Feb 2005 22:25:14 +0100 Received: from [217.246.201.27] (helo=oliverfuchs.onlinehome.de) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1D1AC1-0003jL-00 for freebsd-questions@freebsd.org; Tue, 15 Feb 2005 22:25:14 +0100 Received: from oliverfuchs.onlinehome.de (localhost.onlinehome.de [127.0.0.1]) j1FLP5hZ002389 for ; Tue, 15 Feb 2005 22:25:05 +0100 (CET) (envelope-from oliverfuchs1@oliverfuchs.onlinehome.de) Received: (from oliverfuchs1@localhost) by oliverfuchs.onlinehome.de (8.13.1/8.13.1/Submit) id j1FLP4pi002388 for freebsd-questions@freebsd.org; Tue, 15 Feb 2005 22:25:04 +0100 (CET) (envelope-from oliverfuchs1) Date: Tue, 15 Feb 2005 22:25:03 +0100 From: Oliver Fuchs To: freebsd-questions@freebsd.org Message-ID: <20050215212503.GA1562@oliverfuchs.onlinehome.de> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:c2b2791553508cc938db2bcf18721a3c Subject: run all external commands (!bg) as root in ppp.linkup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 21:25:16 -0000 Hi, on FreeBSD 5.3 I am using ppp in interactive mode with a ppp.linkup script to perform some commands (sendmail and ntpdate): !bg sendmail -L sm-msp-queue -Ac -q !bg ntpdate ptbtime1.ptb.de In man ppp I have seen: [...] All external commands (executed via the "shell" or "!bg" commands) are executed as the user id that invoked ppp. [...] So the only way for a normal user to run this commands successfully in ppp.linkup are per sudo ppp or is there another chance to run these commands? Oliver -- ... don't touch the bang bang fruit