How To Change The Sudo Prompt In Linux

Howto change the sudo prompt in Linux

4 Responses

  1. turbor says:

    NEVER EVER run ‘vi /etc/sudoers’ !
    Always use visudo since it will do a sanity check on the new config file before activating it when you save the changed file, and it will allow you to correct your mistakes if there are any. If sudo encounters a broken config file it will simply stop working!

  2. ffatman says:

    To ~/.bashrc add line

    sudo=’sudo -p “$(shuf ~/.prompts -n 1)” ‘

    and add whatever you want to

    ~/.prompts (you need create).

  3. Kean says:

    How can I get sudo to prompt for root instead of user?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.