From owner-freebsd-questions@FreeBSD.ORG Sat Sep 27 09:37:10 2003 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 8474016A4B3 for ; Sat, 27 Sep 2003 09:37:10 -0700 (PDT) Received: from lariat.org (lariat.org [63.229.157.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 614C244047 for ; Sat, 27 Sep 2003 09:37:09 -0700 (PDT) (envelope-from brett@lariat.org) Received: from mustang.lariat.org (IDENT:ppp1000.lariat.org@lariat.org [63.229.157.2]) by lariat.org (8.9.3/8.9.3) with ESMTP id KAA01557 for ; Sat, 27 Sep 2003 10:37:05 -0600 (MDT) X-message-flag: Warning! Use of Microsoft Outlook renders your system susceptible to Internet worms. Message-Id: <4.3.2.7.2.20030927103435.02caf820@localhost> X-Sender: brett@localhost X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Sat, 27 Sep 2003 10:36:59 -0600 To: questions@freebsd.org From: Brett Glass Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: Best way to modify /etc/ppp/ppp.secrets on the fly? 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: Sat, 27 Sep 2003 16:37:10 -0000 I need to write a program or script that modifies /etc/ppp/ppp.secrets on the fly to add, change, and remove passwords. One thing I do NOT want is for replacement of the file to interfere with a login that's occurring at the same time. What's the best way to slip a new version of the file in without messing up an instance of userland PPP that might check it at just the wrong moment? --Brett Glass