How to make a password in script Announcing the arrival of Valued Associate #679: Cesar...

Why should I vote and accept answers?

How do living politicians protect their readily obtainable signatures from misuse?

How does light 'choose' between wave and particle behaviour?

Sum letters are not two different

Time to Settle Down!

SF book about people trapped in a series of worlds they imagine

What are the diatonic extended chords of C major?

Converted a Scalar function to a TVF function for parallel execution-Still running in Serial mode

Morning, Afternoon, Night Kanji

What's the meaning of "fortified infraction restraint"?

How come Sam didn't become Lord of Horn Hill?

What order were files/directories outputted in dir?

Amount of permutations on an NxNxN Rubik's Cube

I am having problem understanding the behavior of below code in JavaScript

Find 108 by using 3,4,6

Significance of Cersei's obsession with elephants?

Should I use a zero-interest credit card for a large one-time purchase?

Do any jurisdictions seriously consider reclassifying social media websites as publishers?

How to write the following sign?

Project Euler #1 in C++

How does the secondary effect of the Heat Metal spell interact with a creature resistant/immune to fire damage?

How to react to hostile behavior from a senior developer?

If Windows 7 doesn't support WSL, then what does Linux subsystem option mean?

Take 2! Is this homebrew Lady of Pain warlock patron balanced?



How to make a password in script



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionHow to take 'password' like input in shell script?How to make the script automated to take password on its own?Script samba password but securelyHow do I make sudo remember my password for longer?How to add a password to a BASH scriptHow to change password using scriptPassword protected script on editing, no password on executingPassword change ScriptHow to use password from keyring in a scriptVerify password hash in bash script?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







-1















I am working on a terminal-based program and thinking there should be a password (That I would specify if I upload or make the user create one, I have tried



#!/bin/bash

PS3='Are you sure you want to continue?'
options=("Continue" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Continue")
read -s -d test123
;;
"Quit")
break
;;
*) echo "invalid option $REPLY";;
esac
done


But those didn't work..









share









New contributor




VinnyRulesGaming is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Welcome here, but please have a look at meta.stackoverflow.com/questions/326569/…. As for your question, in all cases when asking for help, just do not say "it does not work", say: 1) what you tried (which command, etc.) 2) what unexpected result you got and 3) what expected result you want.

    – Patrick Mevzek
    5 hours ago


















-1















I am working on a terminal-based program and thinking there should be a password (That I would specify if I upload or make the user create one, I have tried



#!/bin/bash

PS3='Are you sure you want to continue?'
options=("Continue" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Continue")
read -s -d test123
;;
"Quit")
break
;;
*) echo "invalid option $REPLY";;
esac
done


But those didn't work..









share









New contributor




VinnyRulesGaming is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Welcome here, but please have a look at meta.stackoverflow.com/questions/326569/…. As for your question, in all cases when asking for help, just do not say "it does not work", say: 1) what you tried (which command, etc.) 2) what unexpected result you got and 3) what expected result you want.

    – Patrick Mevzek
    5 hours ago














-1












-1








-1








I am working on a terminal-based program and thinking there should be a password (That I would specify if I upload or make the user create one, I have tried



#!/bin/bash

PS3='Are you sure you want to continue?'
options=("Continue" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Continue")
read -s -d test123
;;
"Quit")
break
;;
*) echo "invalid option $REPLY";;
esac
done


But those didn't work..









share









New contributor




VinnyRulesGaming is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I am working on a terminal-based program and thinking there should be a password (That I would specify if I upload or make the user create one, I have tried



#!/bin/bash

PS3='Are you sure you want to continue?'
options=("Continue" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Continue")
read -s -d test123
;;
"Quit")
break
;;
*) echo "invalid option $REPLY";;
esac
done


But those didn't work..







password





share









New contributor




VinnyRulesGaming is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share









New contributor




VinnyRulesGaming is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share



share








edited 1 hour ago









Rui F Ribeiro

42.2k1484142




42.2k1484142






New contributor




VinnyRulesGaming is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 5 hours ago









VinnyRulesGamingVinnyRulesGaming

1




1




New contributor




VinnyRulesGaming is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





VinnyRulesGaming is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






VinnyRulesGaming is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Welcome here, but please have a look at meta.stackoverflow.com/questions/326569/…. As for your question, in all cases when asking for help, just do not say "it does not work", say: 1) what you tried (which command, etc.) 2) what unexpected result you got and 3) what expected result you want.

    – Patrick Mevzek
    5 hours ago



















  • Welcome here, but please have a look at meta.stackoverflow.com/questions/326569/…. As for your question, in all cases when asking for help, just do not say "it does not work", say: 1) what you tried (which command, etc.) 2) what unexpected result you got and 3) what expected result you want.

    – Patrick Mevzek
    5 hours ago

















Welcome here, but please have a look at meta.stackoverflow.com/questions/326569/…. As for your question, in all cases when asking for help, just do not say "it does not work", say: 1) what you tried (which command, etc.) 2) what unexpected result you got and 3) what expected result you want.

– Patrick Mevzek
5 hours ago





Welcome here, but please have a look at meta.stackoverflow.com/questions/326569/…. As for your question, in all cases when asking for help, just do not say "it does not work", say: 1) what you tried (which command, etc.) 2) what unexpected result you got and 3) what expected result you want.

– Patrick Mevzek
5 hours ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






VinnyRulesGaming is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f513326%2fhow-to-make-a-password-in-script%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








VinnyRulesGaming is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















VinnyRulesGaming is a new contributor. Be nice, and check out our Code of Conduct.













VinnyRulesGaming is a new contributor. Be nice, and check out our Code of Conduct.












VinnyRulesGaming is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f513326%2fhow-to-make-a-password-in-script%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...