Linux follows tough rules when it comes to permission. Being a root user or sudo user gives you permission to do almost anything which normal user don’t have. Several commands need keyword to run and each time you try to run sudo, Linux asks for a password, today we will configure a passwordless sudo. sudo We need to edit the file we can use command. Step 1: sudoers $ sudo gedit /etc/sudoers this will open a document Edit with username below the line Step 2: “ALL=(ALL) NOPASSWD: ALL” includedir /etc/sudoers.d >> username ALL=(ALL) NOPASSWD:ALL here, the username is your username for which you want to configure passwordless sudo get the current username , use command Step 3: $ echo " " $USER Edit file with username and save it Step 4: Try using sudo command Step 5: $ sudo apt update and done, now you can use without any password sudo