Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Is it possible to change the sudo prompt?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mathfeel
l33t
l33t


Joined: 03 Aug 2004
Posts: 700

PostPosted: Tue Dec 01, 2009 11:57 pm    Post subject: [solved] Is it possible to change the sudo prompt? Reply with quote

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
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Wed Dec 02, 2009 10:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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