From owner-freebsd-hackers Tue May 28 9:17:37 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from marvin.trident-uk.co.uk (mail.trident-uk.co.uk [195.166.16.10]) by hub.freebsd.org (Postfix) with ESMTP id 7C67C37B403 for ; Tue, 28 May 2002 09:17:29 -0700 (PDT) Received: (from root@localhost) by marvin.trident-uk.co.uk (8.11.1/8.11.1) id g4SG09v66786 for freebsd-hackers@freebsd.org; Tue, 28 May 2002 17:00:09 +0100 (BST) Received: from JAMIEHECKFORD (wrkstn-68.pe.trident-uk.co.uk [192.168.100.68]) by marvin.trident-uk.co.uk (8.11.1/8.11.1av) with SMTP id g4SG06a66774 for ; Tue, 28 May 2002 17:00:07 +0100 (BST) Message-ID: <024301c20663$2795e8a0$4464a8c0@JAMIEHECKFORD> From: "Jamie Heckford" To: Subject: Creating Passwords from a perl script Date: Tue, 28 May 2002 17:17:25 +0100 Organization: Trident Microsystems Limited MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS perl-10 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hiya, Im trying to have the passwords on our FreeBSD boxen created by a perl script. Currently... the username/pass pairs are stored in a MySQL database. Easy enough to get them, but does anyone know a perl method of creating them in /etc/passwd? I know getpwent grabs values - im looking for a putpwent if there is such a thing and in the encrypted password form :) thanks in advance to anyone who can help. -- Jamie Heckford Network Manager Trident Microsystems Ltd Tel: 01737 780790 Fax: 01737 771908 http://www.tridentmicrosystems.co.uk *********** This e-mail message contains confidential information for the above addressee only. Any opinion or views contained in this e-mail message are those of the sender and do not necessarily represent those of the Company. Unless otherwise stated this e-mail message is not intended to be contractually binding. E-mail transmission cannot be guaranteed to be secure or error-free and the sender therefore does not accept liability for any errors or omissions in the contents of this message. Trident Microsystems Ltd Group of Companies Perrywood Business Park, Honeycrock Lane, Salfords, Redhill, Surrey, RH1 5JQ Tel: (44) (0) 1737 780790 Fax: (44) (0) 1737 771908 Registered office: Abacus House, Bone Lane, Newbury, Berkshire, RG14 5SF To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message