Customize password request stringWhy is sudo telling me my password is wrong?Will a users password expire if...
Most practical knots for hitching a line to an object while keeping the bitter end as tight as possible, without sag?
Is there a known non-euclidean geometry where two concentric circles of different radii can intersect? (as in the novel "The Universe Between")
Church Booleans
Do ability scores have any effect on casting the Wish spell?
Vacuum collapse -- why do strong metals implode but glass doesn't?
How to refer to a regex group in awk regex?
A square inside an equilateral triangle
Efficiently pathfinding many flocking enemies around obstacles
Was Switzerland really impossible to invade during WW2?
LeetCode: Pascal's Triangle C#
How much code would a codegolf golf if a codegolf could golf code?
Can you help me understand Modes from the aspect of chord changes?
Shouldn't the "credit score" prevent Americans from going deeper and deeper into personal debt?
In the MCU, why does Mjölnir retain its enchantments after Ragnarok?
What to say to a student who has failed?
What does it mean to have a subnet mask /32?
Why aren't RCS openings an issue for spacecraft heat shields?
Why is 日本 read as "nihon" but not "nitsuhon"?
Why don't electrons take the shorter path in coils
When translating the law, who ensures that the wording does not change the meaning of the law?
Table caption in the middle of the table
Is “I am getting married with my sister” ambiguous?
Potential new partner angry about first collaboration - how to answer email to close up this encounter in a graceful manner
Justifying the use of directed energy weapons
Customize password request string
Why is sudo telling me my password is wrong?Will a users password expire if I set the “maxexpired” to “-1”? [maxage not 0] - AIXClear / erase a mistyped password in a terminalSolaris let me in with different password with the same 8 first charactersSecurity in seahorsechange root password back to user passwordForced user password change when login over SSHShow a small key icon when the prompt asks for a password
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I'd like to know if there's a way to customize the sudo password request.
The default string is:
[sudo] password for USER:
Is there a way to change that to some other custom string, like:
Insert sudo password:
?
I want to clear this: I'm not asking how to change the password. I'm asking how to edit the terminal string that appears in the terminal when the system asks for the user password.
Thank you! :)
terminal password appearance
add a comment |
I'd like to know if there's a way to customize the sudo password request.
The default string is:
[sudo] password for USER:
Is there a way to change that to some other custom string, like:
Insert sudo password:
?
I want to clear this: I'm not asking how to change the password. I'm asking how to edit the terminal string that appears in the terminal when the system asks for the user password.
Thank you! :)
terminal password appearance
1
Have a look at thepassprompt
option in theSUDOERS OPTIONS
section ofman sudoers
– steeldriver
2 days ago
1
Thank you. I found the solution by using an alias. :)
– Jimmy Scionti
2 days ago
It may not matter, but the proposed password prompt is misleading. There is no such thing as a "sudo password". Why would you want to obfuscate the prompt?
– Kusalananda♦
2 days ago
That was just an example. :) I wanted to know how to change it for the main sake of (my personal) knowledge. But I must admit that I changed it to a simple padlock now: 🔒. I might play with that a bit. All in all, it's something that I'm doing in my personal computer that I only use. :)
– Jimmy Scionti
yesterday
add a comment |
I'd like to know if there's a way to customize the sudo password request.
The default string is:
[sudo] password for USER:
Is there a way to change that to some other custom string, like:
Insert sudo password:
?
I want to clear this: I'm not asking how to change the password. I'm asking how to edit the terminal string that appears in the terminal when the system asks for the user password.
Thank you! :)
terminal password appearance
I'd like to know if there's a way to customize the sudo password request.
The default string is:
[sudo] password for USER:
Is there a way to change that to some other custom string, like:
Insert sudo password:
?
I want to clear this: I'm not asking how to change the password. I'm asking how to edit the terminal string that appears in the terminal when the system asks for the user password.
Thank you! :)
terminal password appearance
terminal password appearance
asked 2 days ago
Jimmy SciontiJimmy Scionti
164 bronze badges
164 bronze badges
1
Have a look at thepassprompt
option in theSUDOERS OPTIONS
section ofman sudoers
– steeldriver
2 days ago
1
Thank you. I found the solution by using an alias. :)
– Jimmy Scionti
2 days ago
It may not matter, but the proposed password prompt is misleading. There is no such thing as a "sudo password". Why would you want to obfuscate the prompt?
– Kusalananda♦
2 days ago
That was just an example. :) I wanted to know how to change it for the main sake of (my personal) knowledge. But I must admit that I changed it to a simple padlock now: 🔒. I might play with that a bit. All in all, it's something that I'm doing in my personal computer that I only use. :)
– Jimmy Scionti
yesterday
add a comment |
1
Have a look at thepassprompt
option in theSUDOERS OPTIONS
section ofman sudoers
– steeldriver
2 days ago
1
Thank you. I found the solution by using an alias. :)
– Jimmy Scionti
2 days ago
It may not matter, but the proposed password prompt is misleading. There is no such thing as a "sudo password". Why would you want to obfuscate the prompt?
– Kusalananda♦
2 days ago
That was just an example. :) I wanted to know how to change it for the main sake of (my personal) knowledge. But I must admit that I changed it to a simple padlock now: 🔒. I might play with that a bit. All in all, it's something that I'm doing in my personal computer that I only use. :)
– Jimmy Scionti
yesterday
1
1
Have a look at the
passprompt
option in the SUDOERS OPTIONS
section of man sudoers
– steeldriver
2 days ago
Have a look at the
passprompt
option in the SUDOERS OPTIONS
section of man sudoers
– steeldriver
2 days ago
1
1
Thank you. I found the solution by using an alias. :)
– Jimmy Scionti
2 days ago
Thank you. I found the solution by using an alias. :)
– Jimmy Scionti
2 days ago
It may not matter, but the proposed password prompt is misleading. There is no such thing as a "sudo password". Why would you want to obfuscate the prompt?
– Kusalananda♦
2 days ago
It may not matter, but the proposed password prompt is misleading. There is no such thing as a "sudo password". Why would you want to obfuscate the prompt?
– Kusalananda♦
2 days ago
That was just an example. :) I wanted to know how to change it for the main sake of (my personal) knowledge. But I must admit that I changed it to a simple padlock now: 🔒. I might play with that a bit. All in all, it's something that I'm doing in my personal computer that I only use. :)
– Jimmy Scionti
yesterday
That was just an example. :) I wanted to know how to change it for the main sake of (my personal) knowledge. But I must admit that I changed it to a simple padlock now: 🔒. I might play with that a bit. All in all, it's something that I'm doing in my personal computer that I only use. :)
– Jimmy Scionti
yesterday
add a comment |
1 Answer
1
active
oldest
votes
You can do this like in the following example:
sudo -p 'Insert sudo password: ' echo "Hello World!"
Thank you! I got what I was looking for by adding an alias like "alias sudo='sudo --prompt="Enter password: "' to my .bashrc file. :)
– Jimmy Scionti
2 days ago
add a comment |
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
});
}
});
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%2funix.stackexchange.com%2fquestions%2f536342%2fcustomize-password-request-string%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 can do this like in the following example:
sudo -p 'Insert sudo password: ' echo "Hello World!"
Thank you! I got what I was looking for by adding an alias like "alias sudo='sudo --prompt="Enter password: "' to my .bashrc file. :)
– Jimmy Scionti
2 days ago
add a comment |
You can do this like in the following example:
sudo -p 'Insert sudo password: ' echo "Hello World!"
Thank you! I got what I was looking for by adding an alias like "alias sudo='sudo --prompt="Enter password: "' to my .bashrc file. :)
– Jimmy Scionti
2 days ago
add a comment |
You can do this like in the following example:
sudo -p 'Insert sudo password: ' echo "Hello World!"
You can do this like in the following example:
sudo -p 'Insert sudo password: ' echo "Hello World!"
answered 2 days ago
thinkingeyethinkingeye
542 bronze badges
542 bronze badges
Thank you! I got what I was looking for by adding an alias like "alias sudo='sudo --prompt="Enter password: "' to my .bashrc file. :)
– Jimmy Scionti
2 days ago
add a comment |
Thank you! I got what I was looking for by adding an alias like "alias sudo='sudo --prompt="Enter password: "' to my .bashrc file. :)
– Jimmy Scionti
2 days ago
Thank you! I got what I was looking for by adding an alias like "alias sudo='sudo --prompt="Enter password: "' to my .bashrc file. :)
– Jimmy Scionti
2 days ago
Thank you! I got what I was looking for by adding an alias like "alias sudo='sudo --prompt="Enter password: "' to my .bashrc file. :)
– Jimmy Scionti
2 days ago
add a comment |
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.
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%2funix.stackexchange.com%2fquestions%2f536342%2fcustomize-password-request-string%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
1
Have a look at the
passprompt
option in theSUDOERS OPTIONS
section ofman sudoers
– steeldriver
2 days ago
1
Thank you. I found the solution by using an alias. :)
– Jimmy Scionti
2 days ago
It may not matter, but the proposed password prompt is misleading. There is no such thing as a "sudo password". Why would you want to obfuscate the prompt?
– Kusalananda♦
2 days ago
That was just an example. :) I wanted to know how to change it for the main sake of (my personal) knowledge. But I must admit that I changed it to a simple padlock now: 🔒. I might play with that a bit. All in all, it's something that I'm doing in my personal computer that I only use. :)
– Jimmy Scionti
yesterday