AW: [suse-security] strange behaviour useradd / usermod
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? Thanks, Philipp
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. But look at chpasswd (man chpasswd), this tool expects a text-file, each line "user:cleartext-password" for a bulk-change of passwords. -- Andreas
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.
with a bit of perl knowledge that should help: http://nntp.x.perl.org/group/perl.crypto/45 have fun
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@mi.uib.no Email: bjornts@mi.uib.no http://www.mi.uib.no/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Sonntag, 20. Juli 2003 18:07 schrieb mailinglists:
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?
Are you modifying your users from a script? If not, "passwd <username" should do what you want. Ciao, Oliver -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/G3E52xKg64Yci0URAuh6AJ4wVKwELkXI0aLpzfTUp8V5FAUr9wCgp0sm 72pHzRyb/NI4t33iKnIv8lA= =zWPp -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Montag, 21. Juli 2003 06:51 schrieb Oliver Schwabedissen:
Are you modifying your users from a script? If not, "passwd <username" should do what you want.
Sorry, that should read "passwd <username>". No input redirection... Ciao, Oliver -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/G4G32xKg64Yci0URAsf4AJ9Arp7XuiCODuGcFpmOhD6S+R9YEgCgqeBV pNA1mK6ZCvbvcvM5wX0dZwk= =3kvh -----END PGP SIGNATURE-----
participants (5)
-
Andreas Winkelmann
-
Bjorn Tore Sund
-
mailinglists
-
Oliver Schwabedissen
-
Sven 'Darkman' Michels