On Fri, 30 Apr 1999, Blinston S. Fernandes wrote:

> How about making the entry into the password file directly. fopen(3S) it
> directly and append your entry to it as it is a simple text file. 
> 
> The password you have entered from the user (unencrypted) can be encrypted
> using the crypt(3C) library function.
>  If you do this you can also think about using
> alternative methods for generating the salt. gettimeofday(3C) is
> traditional but you can also use alternatives like gethrtime(3C).
> 
> Invoking useradd and the likes may not be such a good idea. when you can
> do the above. It is much simpler too !

And it breaks all to pieces on a system using shadow passwords or PAM.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Specializing in unusual perspectives for more than twenty years.

Reply via email to