close
» » How to make SUDO without a password on Linux Mint

How to make SUDO without a password on Linux Mint

Section: Other | Actuality: Unspecified

How to make SUDO without a password on Linux Mint

If You are tired of typing the password every time you use sudo, then you can disable the password prompt for your user. There is a way to use sudo without a password, and below I will show how it can be done.

I would not recommend doing this, is for informational purposes only, or if you know What you do and Why You do it)))

Open a terminal and run:

sudo visudo

Find the line
# See sudoers(5) for more information on "#include" directives:
add below:
YourUserName ALL=(ALL) NOPASSWD: ALL

How to make SUDO without a password on Linux MintHow to make SUDO without a password on Linux Mint

Ctrl+X and save it.

Good Luck!!!

Print version

  1. Adi
    Adi 10 May 2018 03:37
    This does not work in Linux Mint 18.3 (Sylvia).
    I have updated sudoers accordingly but wont work.
    • 0
  2. XKCD
    XKCD 13 July 2018 04:46
    $ sudo visudo -f /etc/sudoers.d/myOverrides

    YourUserName ALL=(ALL) NOPASSWD: ALL
    • 0
    Your favorite Linux distribution is Other polls