From owner-freebsd-security Thu Jun 7 6:29:24 2001 Delivered-To: freebsd-security@freebsd.org Received: from public.guangzhou.gd.cn (mail2-smtp.guangzhou.gd.cn [202.105.65.222]) by hub.freebsd.org (Postfix) with SMTP id 2A0D337B406 for ; Thu, 7 Jun 2001 06:29:17 -0700 (PDT) (envelope-from huacheng@public.guangzhou.gd.cn) Received: from slack([211.95.229.139]) by public.guangzhou.gd.cn(JetMail 2.5.3.0) with SMTP id jm03b1fbcdd; Thu, 7 Jun 2001 13:27:20 -0000 Message-ID: <009e01c0ef55$da422340$9201a8c0@home.net> From: "edwin chan" To: "David Miner" , "Olivier Nicole" Cc: References: Subject: Re: Encrypted passwords Date: Thu, 7 Jun 2001 21:28:21 +0800 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 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I think that : you have a user list, and you can make a random password for them, then you can use "expect" and " passwd user" do your jobs and don't worry how chpass works. ----- Original Message ----- From: David Miner To: Olivier Nicole Cc: Sent: Thursday, June 07, 2001 12:22 AM Subject: Re: Encrypted passwords > On Wed, 6 Jun 2001, Olivier Nicole wrote: > > > >But when I encrypt them and put them in the passwd file, they do not allow > > >the user to log in.I have to use the passwd program to manually change > > >them to the same password that I wanted originally.Thus I believe the > > >problem lies in the encryption method or how it is being passwd to the > > >chpass program. > > > > Hummm, I think nowdays passwords are not kept in a plain file but in a > > .db file. Can't it be the problem? > > > > Olivier > > > No, the chpass function takes care calling mk-pwd and putting them in the > .db file. Otherwise nothing would be there when I look at it with vipw. > > It appears that what is being passed by the crypt function is not what is > making it into the passwd file. At a SWAG. > > David > --------------------------------------------------------------------- > David R. Miner miner@lis.fsu.edu > Systems Integrator voice: 850-644-8107 > School of Information Studies fax: 850-644-6253 > Florida State University > Tallahassee, FL 32306-2100 > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-security" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message