Categories Uncategorized

Use sudo without Password

Those of you that use Ubuntu with any regularity might have run into the very annoying instance of always having to enter the root password when running certain commands with sudo.

For me, I use a LAMPP server on my computer to test scripts and such locally and I installed the LAMPP control panel, a GUI, to make things a bit easier. LAMPPCP is one of those programs that requires the root password every single time you run it.

So, I had to find a way around it.

A word of caution: performing the below steps can screw some things up pretty nicely so be sure you know what you’re doing before you jump right into this whole thing.

  1. Open a terminal window.
  2. Write “sudo nano /etc/sudoers” to open up the /etc/sudoers file.
  3. Add the following at the bottom: “username ALL = NOPASSWD: ALL”
  4. Save and exit.

If you do this right, you now have one less password to enter, especially if you’re running this program through the start menu.



I'm just one of those guys that like well as drawing, writing, reading, coding and a whole bunch of other things I rarely have time for.