Mailinglist Archive: opensuse-security (359 mails)

< Previous Next >
Re: AW: [suse-security] strange behaviour useradd / usermod
  • From: Bjorn Tore Sund <bjornts@xxxxxxxxx>
  • Date: Mon, 21 Jul 2003 10:41:36 +0200 (CEST)
  • Message-id: <Pine.LNX.4.44.0307211039320.22508-100000@xxxxxxxxxxxxxx>

On Sun, 20 Jul 2003, Andreas Winkelmann wrote:

> mailinglists wrote:
>
> >>if you change the password, did you use usermod -p CRYPTEDPASSWORD
> >>or did you use a plaintext password? if plaintext, read man usermod
> >>again ;)
> >
> > Thanks, that's it. Just checked google on how to crypt passwords. Well...
> > How am I supposed to crypt the password? man crypt returns the man for crypt.h and 'whereis crypt' also points me to the same header file.
> > Is there a tool for that?
>
> Hmm, i didn't find anything. The crypt-command is in the
> systemlibraries, no shell-command. And i know no shell-command which
> gives the crypted-password on stdout.

htpasswd will do that for you. Try:

htpasswd -nb dumbuser sillypass

After that it's fairly simple scripting to feed that into usermod.

Bjørn
--
Bjørn Tore Sund Phone: (+47) 555-84894 Stupidity is like a
System administrator Fax: (+47) 555-89672 fractal; universal and
Math. Department Mobile: (+47) 918 68075 infinitely repetitive.
University of Bergen VIP: 81724
teknisk@xxxxxxxxx Email: bjornts@xxxxxxxxx http://www.mi.uib.no/


< Previous Next >
References