From owner-freebsd-questions Wed Sep 17 20:34:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA01763 for questions-outgoing; Wed, 17 Sep 1997 20:34:22 -0700 (PDT) Received: from gdi.uoregon.edu (cisco-ts15-line11.uoregon.edu [128.223.150.194]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA01755 for ; Wed, 17 Sep 1997 20:34:19 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.8.5) with SMTP id UAA05581; Wed, 17 Sep 1997 20:34:11 -0700 (PDT) Date: Wed, 17 Sep 1997 20:34:11 -0700 (PDT) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: "Randy A. Katz" cc: questions@FreeBSD.ORG Subject: Re: AUTOMATE USER CHANGE PASSWORD In-Reply-To: <3.0.3.32.19970916212058.009fb520@ccsales.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 16 Sep 1997, Randy A. Katz wrote: > This requires the user executing it to be root, according to the man pw > page, first paragraph, oh well. Any other suggestions? Isn't there a setuid()-type function for perl? You'll want to check that everything is OK before performing the switch to root. I can't find my camel book so I can't confim this (unless it was added for Perl5). Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major Spam routed to /dev/null by Procmail | Death to Cyberpromo