Results 1 to 6 of 6

Thread: how do I change the sudo password prompt?

  1. #1
    Join Date
    Feb 2012
    Beans
    21

    how do I change the sudo password prompt?

    hi,

    I like to change EVERYTHING and I was wondering if there was a way to change the bash sudo password prompt. for the moment it's this
    Code:
    [sudo] password for anojirox:
    and I want it to be this
    Code:
    what's your password? please enter it here:
    thx in advance!

  2. #2
    Join Date
    Feb 2012
    Location
    New Delhi, India
    Beans
    87
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: how do I change the sudo password prompt?

    Quote Originally Posted by AnojiRox View Post
    hi,

    I like to change EVERYTHING and I was wondering if there was a way to change the bash sudo password prompt. for the moment it's this
    Code:
    [sudo] password for anojirox:
    and I want it to be this
    Code:
    what's your password? please enter it here:
    thx in advance!
    Lol @ your Request
    btw i don't think you can do that

  3. #3
    Join Date
    Feb 2012
    Beans
    21

    Re: how do I change the sudo password prompt?

    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
    }
    Last edited by AnojiRox; March 14th, 2012 at 06:46 PM.

  4. #4
    Join Date
    Feb 2012
    Location
    New Delhi, India
    Beans
    87
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: how do I change the sudo password prompt?

    Quote Originally Posted by AnojiRox View Post
    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

  5. #5
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: how do I change the sudo password prompt?

    Maybe you can also learn making an alias. There are already some simple aliases in .bashrc.

    Code:
    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)
    Last edited by sudodus; March 14th, 2012 at 07:43 PM. Reason: mark SOLVED please

  6. #6
    Join Date
    Apr 2012
    Beans
    1

    Re: how do I change the sudo password prompt?

    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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •