David Blackman on 13 Apr 2010 09:39:50 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] POSIX shell way to read a passphrase


I've done it this way:

http://www.askdavetaylor.com/prompting_users_for_passwords_in_a_shell_script.html

On Tue, Apr 13, 2010 at 12:25 PM, K.S. Bhaskar <bhaskar@bhaskars.com> wrote:
> In bash, you can prompt for and read from the keyboard without echoing
> (e.g., to capture a password, you can use read -sp "Password: "
> mypwd).  What is the recommended way, if any, to do this in a POSIX
> shell script that must execute on a wide range of UNIX/Linux
> platforms?  Thanks in advance.
>
> Regards
> -- Bhaskar
>
> --
> Windows does to computers what smoking does to humans
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
>



-- 
David Blackman
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug