Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!munnari.oz.au!uniwa!chris From: chris@ec.uwa.oz.au (Christoph Uloth) Newsgroups: comp.unix.wizards Subject: Re: opening accounts from a non-root account .. Keywords: password, crypt(3) Message-ID: <1991Jun16.075023.268@uniwa.uwa.oz> Date: 16 Jun 91 07:50:23 GMT References: <1991Jun14.135823.27059@fccc.edu> Sender: news@uniwa.uwa.oz (USENET News System) Distribution: comp.unix.wizards Organization: University of Western Australia Lines: 16 Nntp-Posting-Host: decel.ecel.uwa.oz.au quillen@orion.fccc.edu (John Quillen) writes: >mk_pass( pass ) >char *pass; /* unencrypted passwd */ >{ > extern char *crypt(); > char salt[ 3 ]; > salt[ 0 ] = (char) getrand( 'a', 'z' ); > salt[ 1 ] = (char) getrand( 'A', 'Z' ); > salt[ 2 ] = (char) NULL; > return( crypt( pass, salt )); >} the line seedrand(); is missing after char salt[ 3 ];