From: denf@novosoft.ru To: mandrake-russian@altlinux.ru Subject: Re: [mdk-re] MD5 Date: Mon Aug 6 11:30:01 2001 Message-ID: <OF34A67EB4.F20D093E-ONC6256AA0.002AE15C@novosoft.ru> (raw) 08/06/2001 02:32:54 PM mandrake-russian-admin wrote: >denf@novosoft.ru wrote: >> >> 08/06/2001 01:25:13 PM mandrake-russian-admin wrote: >> >Batalov Grigory wrote: >> >> >> >> On Mon, 6 Aug 2001, cornet wrote: >> >> >> >> > Как можно в шелле по простому получить из обычной строки ее же но >> >> > криптованую в MD5? >> >> >> >> echo "string" | md5sum >> > >> >Ага, сеньк! >> > >> >Только... почему при подсовывании в shadow криптованой строки, >> >полученной от md5sum, юзверя отшивают с неверным пасвордом?? >> > >> >Например: >> >[cornet@smart /]$ echo 'tata' | md5sum >> >6ccef1b25ea58fb8be3ca1a1a744ea53 - >> >[cornet@smart /]$ >> >строчка из shadow: >> >test:6ccef1b25ea58fb8be3ca1a1a744ea53:11540:0:99999:7::: >> >не пущают :-(( >> >хотя если задать тот же пасворд через passwd test то пустят. >> >> во-первых, там скорее всего blowfish ( /etc/pam.d/system-auth ), >> а во-вторых, в /etc/shadow первые два символа - salt, они нужны как раз для >> определения алгоритма, по которому получена остальная часть строки. для >> MD5, кажется, "$1" > >Далеко не все пасворды в моем shadow начинаются с "$1", хотя все >действительно имеют в начале "$" >Попробовал подсунуть и то и другое - пофигу. > >из /etc/pam.d/system-auth: > >password sufficient /lib/security/pam_unix.so nullok >use_authtok blowfish shadow > >оно? оно, можно blowfish поменять на md5, тогда новые пароли будут в md5. Наверно. Сам не проверял.
next reply other threads:[~2001-08-06 11:30 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-08-06 11:30 denf [this message] 2001-08-06 11:39 ` cornet
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=OF34A67EB4.F20D093E-ONC6256AA0.002AE15C@novosoft.ru \ --to=denf@novosoft.ru \ --cc=mandrake-russian@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git