Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 1997 20:34:11 -0700 (PDT)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        "Randy A. Katz" <randyk@ccsales.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: AUTOMATE USER CHANGE PASSWORD
Message-ID:  <Pine.BSF.3.96.970917202803.5533C-100000@localhost>
In-Reply-To: <3.0.3.32.19970916212058.009fb520@ccsales.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970917202803.5533C-100000>