ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@alt-linux.org>
To: ALT Linux Spring mailing list <mandrake-russian@altlinux.ru>
Cc: "Artem K. Jouravsky" <ujo@ifirst.ru>
Subject: Re: [mdk-re] useradd в пакетном режиме
Date: Tue Apr  9 17:41:28 2002
Message-ID: <20020409134022.GA23941@ldv.office.alt-linux.org> (raw)
In-Reply-To: <20020409122841.GA25099@ifirst.ru>

[-- Attachment #1: Type: text/plain, Size: 1193 bytes --]

On Tue, Apr 09, 2002 at 04:28:41PM +0400, Artem K. Jouravsky wrote:
> нужно писать скрипт, который будет добавлять пользователя в систему, если
> тот кто это делает (естественно, скрипт будет вызываться через sudo)
> авторизован, не просит лишнего и т.д. Вместе с тем, скрипт будет
> отписывать по почте/писать в лог о проделанной работе. Это предыстория.
> Поскольку passwd не хочет читать данные иначе как с консоли, смотрю man
> useradd, там есть опция -p <password>. Говорю 
> # useradd testuser -p AnyPassword
> получаю в результате пользователя, для которого в /etc/tcb/testuser/shadow
> пароль AnyPassword прописан без шифровки, открытым текстом. Это так и надо? 

Да, см. useradd(8)

> Если да, то какой командой я могу зашифровать пароль?

Для неинтерактивной установки пароля используйте chpasswd(8).


Regards,
	Dmitry

+-------------------------------------------------------------------------+
Dmitry V. Levin     mailto://ldv@alt-linux.org
ALT Linux Team      http://www.altlinux.com/
Fandra Project      http://www.fandra.org/
+-------------------------------------------------------------------------+
UNIX is user friendly. It's just very selective about who its friends are.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  parent reply	other threads:[~2002-04-09 17:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-09 16:29 Artem K. Jouravsky
2002-04-09 16:37 ` Igor Homyakov
2002-04-09 16:41 ` vic ismakaev
2002-04-09 17:08   ` [mdk-re] " Artem K. Jouravsky
2002-04-09 17:37     ` Grigory Milev
2002-04-09 18:39     ` cornet
2002-04-09 19:19       ` Artem K. Jouravsky
2002-04-10 15:31     ` Alexey Morozov
2002-04-12 21:06     ` Konstantin Lepikhov
2002-04-12 22:07       ` Artem K. Jouravsky
2002-04-13 11:51         ` Konstantin Lepikhov
2002-04-13 11:55           ` Alexey Morozov
2002-04-13 20:11         ` [mdk-re] " Maxim
2002-04-15 11:25           ` [mdk-re] " Artem K. Jouravsky
2002-04-09 17:41 ` Dmitry V. Levin [this message]
2002-04-09 18:04   ` [mdk-re] " Artem K. Jouravsky
2002-04-10 15:34   ` Alexey Morozov

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=20020409134022.GA23941@ldv.office.alt-linux.org \
    --to=ldv@alt-linux.org \
    --cc=mandrake-russian@altlinux.ru \
    --cc=ujo@ifirst.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