From owner-freebsd-hackers Tue Dec 2 15:03:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA13180 for hackers-outgoing; Tue, 2 Dec 1997 15:03:03 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from global.com (global.com [206.40.50.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA13157; Tue, 2 Dec 1997 15:02:53 -0800 (PST) (envelope-from gopu@global.com) Message-ID: <3484929A.F3ECC50F@global.com> Date: Tue, 02 Dec 1997 14:58:35 -0800 From: Gopakumar H Pillai Organization: Global Automation Inc. X-Mailer: Mozilla 4.03 [en] (Win95; I) MIME-Version: 1.0 To: FreeBSD Questions , hackers@freebsd.org Subject: Passwd file updation Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk How should I go about updating the passwd file through a program in the safest way? I mean, when I do vipw it creates a file /tmp/pwd.xxxxx where xxxxx is the pid of the process. What all such steps should be taken to update the passwd file and eventually the passwd database. -- --Gopu (gopu@global.com)