Okay...here is the clarification.
From all looks of it, it is a standalone utility. If you pull up the man
pages for crypt, you will mention of the encrypt, at the bottom of the man
page for encrypt. The purpose of encrypt is for encrypting the text words
into encryption which I can use to add into the useradd command by setting
the encrypted password in it, which in turn can be used by the passwd
system.
Reason is that when you use the useradd command, and you use the -p option,
it just needs the encrypted password in it so it can put it in the passwd
file, which I have to run the pwconv to convert it over to shadowed password
file. I think it is fubured way of doing it, but that is currently how it
is done now. If that is not how it should not be, then it need to be fixed,
since I am trying to make a script that will take the variable password and
build the new user entry into the system and setup 7 other things in one
shot. But frankly, I hate using adduser without the -p option to have the
password put in to have it added into the system when I have to do two set
of commands which is adduser and then passwd to set each account which to me
is unnecessary. So, after reading though the pages, I came across that
mention of encrypt and found that is what I needed to encrypt the word for
the passwords to be put in the useradd -p <encrypted password> part to get
it done.
So... it comes down to two things... the encrypt is missing or the useradd
is screwed up as it is, since I do not like using the expect to put in the
password for every account when I do the setuser script to setup the account
and setup the frontpage, webalizer, logging options, apache configuration,
DNS entry and few other things that I needed done. Just the password part
is what making the script useless at the moment. :)
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Louis Debert
> Sent: Tuesday, April 11, 2000 1:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [expert] Encrypt utility missing....
>
>
> Russell \"Elik\" Rademacher wrote:
> >
> > Hey Guys.... guess what.
> >
> > Seems that the file utilty, encrypt is missing from the
> distro. If it is
> > not, where is that file located at? For I cannot for life of
> me locate that
> > utility which I needed for my script for the adduser.
>
> Are you sure it's a standalone utility ? As far as I remember, the
> crypt()
> function is part of the (g)libc, so you can use it in any development
> environment.
> As to Mandrake, I guess that it also uses PAM modules, so have a look
> into this too ...
>
>
> --
> Jean-Louis Debert [EMAIL PROTECTED]
> 74 Annemasse France
> old Linux fan
>