How to avoid the error stty: 'standard input': inappropriate ioctl for device? The 2019 Stack...
How does ice melt when immersed in water
How is simplicity better than precision and clarity in prose?
Did God make two great lights or did He make the great light two?
system() function string length limit
Was credit for the black hole image misattributed?
University's motivation for having tenure-track positions
Didn't get enough time to take a Coding Test - what to do now?
Derivation tree not rendering
Change bounding box of math glyphs in LuaTeX
Why can't devices on different VLANs, but on the same subnet, communicate?
Arduino Pro Micro - switch off LEDs
Finding the path in a graph from A to B then back to A with a minimum of shared edges
Are my PIs rude or am I just being too sensitive?
I could not break this equation. Please help me
Can smartphones with the same camera sensor have different image quality?
Can withdrawing asylum be illegal?
Did the new image of black hole confirm the general theory of relativity?
Windows 10: How to Lock (not sleep) laptop on lid close?
Is above average number of years spent on PhD considered a red flag in future academia or industry positions?
How are presidential pardons supposed to be used?
Is every episode of "Where are my Pants?" identical?
Segmentation fault output is suppressed when piping stdin into a function. Why?
How to stretch delimiters to envolve matrices inside of a kbordermatrix?
What's the point in a preamp?
How to avoid the error stty: 'standard input': inappropriate ioctl for device?
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Couldn't create error file for command: no such file or directoryHow can I fix a problem with standard error screwing up the output of watch?PHP crazy behavior on mountHow can I avoid the “grep: Argument list too long” error?How to pipe arguments into stdin?Run command for every line of a file in bash, passing lines as standard inputstty: standard input: Invalid argument error when scping filesSeparating terminal stdin and stdoutParsing the result of a command in a Linux bash scriptScript selection of options inside running program
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I want to pass two inputs (passwords) to the command grub2-setpassword.
echo -e "linuxpasswordnlinuxpassword" | grub2-setpassword
However, I'm getting this error on CentOS 7:
stty: 'standard input': inappropriate ioctl for device
How to avoid this error?
bash
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I want to pass two inputs (passwords) to the command grub2-setpassword.
echo -e "linuxpasswordnlinuxpassword" | grub2-setpassword
However, I'm getting this error on CentOS 7:
stty: 'standard input': inappropriate ioctl for device
How to avoid this error?
bash
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I want to pass two inputs (passwords) to the command grub2-setpassword.
echo -e "linuxpasswordnlinuxpassword" | grub2-setpassword
However, I'm getting this error on CentOS 7:
stty: 'standard input': inappropriate ioctl for device
How to avoid this error?
bash
I want to pass two inputs (passwords) to the command grub2-setpassword.
echo -e "linuxpasswordnlinuxpassword" | grub2-setpassword
However, I'm getting this error on CentOS 7:
stty: 'standard input': inappropriate ioctl for device
How to avoid this error?
bash
bash
asked Dec 26 '16 at 13:49
GreenTeaTechGreenTeaTech
8115
8115
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You are trying to go against the nature of grub's password tool, so you have to jump through hoops to get there : drive the terminal directly via expect or perl or python (etc.) or find a new tool.
Scriptable grub2-mkpasswd my passwd on github may help.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1160325%2fhow-to-avoid-the-error-stty-standard-input-inappropriate-ioctl-for-device%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You are trying to go against the nature of grub's password tool, so you have to jump through hoops to get there : drive the terminal directly via expect or perl or python (etc.) or find a new tool.
Scriptable grub2-mkpasswd my passwd on github may help.
add a comment |
You are trying to go against the nature of grub's password tool, so you have to jump through hoops to get there : drive the terminal directly via expect or perl or python (etc.) or find a new tool.
Scriptable grub2-mkpasswd my passwd on github may help.
add a comment |
You are trying to go against the nature of grub's password tool, so you have to jump through hoops to get there : drive the terminal directly via expect or perl or python (etc.) or find a new tool.
Scriptable grub2-mkpasswd my passwd on github may help.
You are trying to go against the nature of grub's password tool, so you have to jump through hoops to get there : drive the terminal directly via expect or perl or python (etc.) or find a new tool.
Scriptable grub2-mkpasswd my passwd on github may help.
answered Dec 28 '16 at 4:43
AlwaysLearningAlwaysLearning
1,079712
1,079712
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1160325%2fhow-to-avoid-the-error-stty-standard-input-inappropriate-ioctl-for-device%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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