[NTLUG:Discuss] Re: Create User Account
Thomas Cameron
thomas.cameron at camerontech.com
Mon Jan 23 00:38:44 CST 2006
On Tue, 2006-01-17 at 12:10 -0600, Dennis Rice wrote:
> I ran into this problem when I was teaching my class last week. The
> answer is simple, but not what expected. If I recall correctly, it did
> work back in RH 7.2.
>
> When running the useradd newname -p password, the user is created and
> the new password is placed into the shadow file in clear text.
> Naturally this is invalid.
>
> Athough I have not tried it out, I would suggest that if one created a
> new password using the command mkpasswd, if it is installed on your
> system, then copy/paste it into the original useradd newname -p
> {encrypted passwd from mkpasswd}, then when loging on it would work.
> But all of this is much harder than issuing the command pair useradd and
> passwd.
>
> Dennis
No, this will not work, as mkpasswd does not md5 encrypt it.
Thomas
More information about the Discuss
mailing list