View previous topic :: View next topic |
Author |
Message |
mathfeel l33t
Joined: 03 Aug 2004 Posts: 700
|
Posted: Tue Dec 01, 2009 11:57 pm Post subject: [solved] Is it possible to change the sudo prompt? |
|
|
I need to scp some file as root today, so I issued the command:
Code: | sudo scp root@remotehost:path . |
As a result, I got two "Password:" prompt, one from sudo and the other from scp. It confused me for a bit. Then I noticed on my friend's Ubuntu machine, when one issue a sudo the prompt is something like:
Code: | [sudo] Password (sudouser): |
Can this be set somewhere? Or is this hard-coded in?
[EDIT]man sudo shows there is a -P option, so I suppose an alias would work.
Google-solved:
Code: | Default passprompt="[sudo] Password (%u):" |
in /etc/sudoers
[/EDIT] _________________ -----------------------------------------------------------
"In heaven all the interesting people are missing"
-- Friedrich Nietzsche
Last edited by mathfeel on Tue Jan 19, 2010 12:58 am; edited 1 time in total |
|
Back to top |
|
|
Raniz l33t
Joined: 13 Sep 2003 Posts: 967 Location: Varberg, Sweden
|
Posted: Wed Dec 02, 2009 10:02 am Post subject: |
|
|
You should add [solved] to the title of your topic so that others can see that you've solved the issue yourself. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|