From: vic ismakaev <viclists@mail.esoo.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] useradd в пакетном режиме
Date: Tue Apr 9 16:41:13 2002
Message-ID: <200204091240.RAA05235@ns.esoo.ru> (raw)
In-Reply-To: <20020409122841.GA25099@ifirst.ru>
9 Апрель 2002 18:28, Вы написали:
> Доброго времени суток!
> нужно писать скрипт, который будет добавлять пользователя в систему, если
> тот кто это делает (естественно, скрипт будет вызываться через sudo)
> авторизован, не просит лишнего и т.д. Вместе с тем, скрипт будет
> отписывать по почте/писать в лог о проделанной работе. Это предыстория.
> Поскольку passwd не хочет читать данные иначе как с консоли, смотрю man
> useradd, там есть опция -p <password>. Говорю
> # useradd testuser -p AnyPassword
> получаю в результате пользователя, для которого в /etc/tcb/testuser/shadow
> пароль AnyPassword прописан без шифровки, открытым текстом. Это так и надо?
> Если да, то какой командой я могу зашифровать пароль?
Опция -p подразумевает уже зашифрованный пароль. Поэтому просто шифруйте
AnyPassword с помощью crypt и подсталяйте его.
--
С уважением
Виктор В Исмакаев
next prev parent reply other threads:[~2002-04-09 16: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 [this message]
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 ` [mdk-re] " Dmitry V. Levin
2002-04-09 18:04 ` 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=200204091240.RAA05235@ns.esoo.ru \
--to=viclists@mail.esoo.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