opening accounts from a non-root account ..
Christoph Uloth
chris at ec.uwa.oz.au
Sun Jun 16 17:50:23 AEST 1991
quillen at 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 ];
More information about the Comp.unix.wizards
mailing list