ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Artem K. Jouravsky" <ujo@ifirst.ru>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: Написать скрипт с вводом пароля
Date: Mon Apr 22 11:07:20 2002
Message-ID: <20020422070849.GD634@ifirst.ru> (raw)
In-Reply-To: <20020422070838.GA18239@ramax.spb.ru>

On Mon, Apr 22, 2002 at 11:08:38AM +0400, Igor Homyakov wrote:
> On Mon, Apr 22, 2002 at 09:06:16AM +0400, Eugene Prokopiev wrote:
> > Здравствуйте!
> > 
> > Как написать баш-скрипт с вводом пользователем пароля, который бы не 
> > отображался (как в passwd)?
> > 
> > С уважением, Прокопьев Евгений
> 
> Perl Cookbook совет 15.10 
> http://www.perldoc.com/perl5.6/pod/perlfaq8.html#How-do-I-ask-the-user-for-a-password-
Можно проще, без перла.
[ujo@ujo ujo]$ cat pass.sh 
#!/bin/sh
echo -n "Enter password: "
stty -echo
read password
stty echo
echo
echo "Password is $password"
<EOF>

man stty

-- 
Best wishes,
Artem K. Jouravsky,
iFirst Ltd, System Administrator.
-----------------------
Hot Java has gone cold



  parent reply	other threads:[~2002-04-22 11:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-22  9:06 [mdk-re] " Eugene Prokopiev
2002-04-22 10:07 ` Igor Homyakov
2002-04-22 11:02   ` [mdk-re] " Eugene Prokopiev
2002-04-22 11:07   ` Artem K. Jouravsky [this message]
2002-04-22 15:04   ` [mdk-re] [JT] " Michael Shigorin
2002-04-22 13:40 ` [mdk-re] " Yura Kalinichenko
2002-04-22 15:04 ` [mdk-re] " Michael Shigorin

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=20020422070849.GD634@ifirst.ru \
    --to=ujo@ifirst.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