PDA

View Full Version : [SOLVED] how do I change the sudo password prompt?



AnojiRox
March 14th, 2012, 06:15 PM
hi,

I like to change EVERYTHING:p and I was wondering if there was a way to change the bash sudo password prompt. for the moment it's this

[sudo] password for anojirox:and I want it to be this

what's your password? please enter it here:thx in advance!;)

tbhatia4
March 14th, 2012, 06:21 PM
hi,

I like to change EVERYTHING:p and I was wondering if there was a way to change the bash sudo password prompt. for the moment it's this

[sudo] password for anojirox:and I want it to be this

what's your password? please enter it here:thx in advance!;)

Lol @ your Request
btw i don't think you can do that

AnojiRox
March 14th, 2012, 06:36 PM
I've found a way:)
I put this into my .bashrc file:
function dosu () {
sudo -p "What's your password? please enter it here: " $1 $2 $3 $4 $5 $6 $7 $8 $9
}

tbhatia4
March 14th, 2012, 07:14 PM
I've found a way:)
I put this into my .bashrc file:
function dosu () {
sudo -p "What's your password? please enter it here: " $1 $2 $3 $4 $5 $6 $7 $8 $9
}

Great :popcorn:

sudodus
March 14th, 2012, 07:38 PM
Maybe you can also learn making an alias. There are already some simple aliases in .bashrc.


alias sudden='sudo -p "What'\''s your password? please enter it here: " '

And now, please mark this thread as SOLVED (click Thread Tools at the top of this page)

jag3dagster
July 10th, 2012, 10:38 PM
This post is fantastic!

It makes me so happy to know that there are customizers out there that have the same customization wants and needs that I do.

Many thanks :KS