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

Add comments

  • Local comments
  • Facebook comments
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
XKCD
XKCD 13 July 2018 04:46
$ sudo visudo -f /etc/sudoers.d/myOverrides

YourUserName ALL=(ALL) NOPASSWD: ALL
  • 0
  • bowtiesmilelaughingblushsmileyrelaxedsmirk
    heart_eyeskissing_heartkissing_closed_eyesflushedrelievedsatisfiedgrin
    winkstuck_out_tongue_winking_eyestuck_out_tongue_closed_eyesgrinningkissingstuck_out_tonguesleeping
    worriedfrowninganguishedopen_mouthgrimacingconfusedhushed
    expressionlessunamusedsweat_smilesweatdisappointed_relievedwearypensive
    disappointedconfoundedfearfulcold_sweatperseverecrysob
    joyastonishedscreamtired_faceangryragetriumph
    sleepyyummasksunglassesdizzy_faceimpsmiling_imp
    neutral_faceno_mouthinnocent
    Your working environment Other polls