ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: vic ismakaev <viclists@mail.esoo.ru>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] Re: Как получить пароль пользователя в зашифрованном виде?
Date: Thu, 19 Sep 2002 09:53:27 +0600
Message-ID: <200209190953.27812.viclists@mail.esoo.ru> (raw)
In-Reply-To: <20020918152608.GT20694@osdn.org.ua>

18 Сентябрь 2002 21:26, Michael Shigorin написал:
> On Wed, Sep 18, 2002 at 06:50:54PM +0400, Igor Dobryninsky wrote:
> > Подскажите, по какому алгоритму формируется строка пароля,
> > которая попадает в /etc/shadow (или /etc/tcb/{user}/shadow)?
crypt(3) или md5 можно использовать.
При crypt случайным образом формируете SALT(два символа) и добавляете 
криптованый пароль.(длина строки 13 символов) 
md5 парольная строка должна начинаться с символов $1$ (вроде этой 
$1$aDX54fg76678dfgDHDF) Длина строки -31 символ.
Вроде так.
> Она может формироваться по существенно различающимся алгоритмам
> в зависимости от многих факторов.
>
> > Мне это нужно для скрипта, добавляющего пользователя в систему.
>
> Извиняюсь за дурацкий вопрос -- а useradd(8) не подкручивается
> никак под нужные цели?
Ей все равно надо передавать криптованный пароль (с помощью crypt(3)).
-- 
С уважением
Виктор В Исмакаев


  reply	other threads:[~2002-09-19  3:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-18 14:50 [sisyphus] " Igor Dobryninsky
2002-09-18 14:55 ` Dmitry V. Levin
2002-09-19  4:04   ` Igor Dobryninsky
2002-09-18 15:26 ` [sisyphus] " Michael Shigorin
2002-09-19  3:53   ` vic ismakaev [this message]
2002-09-19  4:13     ` Igor Dobryninsky
2002-09-19  5:20       ` vic ismakaev
2002-09-19  5:43         ` Igor Dobryninsky
2002-09-19 11:08           ` Michael Shigorin
2002-09-19 14:09             ` [sisyphus] " Nicholas Tretyachenko

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=200209190953.27812.viclists@mail.esoo.ru \
    --to=viclists@mail.esoo.ru \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git