Here’s how you can set Ubuntu to not prompt for your password when using sudo.
Launch a terminal window and enter the following command:
# sudo visudo
Visudo is a tool used to edit the configuration file of sudo . The command will prompt your for your password. Enter it one last time. The configuration file will open in a text editor, most likely Nano. Scroll down to the end of the document and add the following line:
username ALL=NOPASSWD: ALL
Replace username with the username of the user you want to allow a passwordless sudo. So if the user is kari, you would enter:
kari ALL=NOPASSWD: ALL
Save and exit the file. Log out, log in as the user kari and test out your new passwordless sudo.
Note: this is something that is not recommended if you are using your computer in a public place or at your work
Launch a terminal window and enter the following command:
# sudo visudo
Visudo is a tool used to edit the configuration file of sudo . The command will prompt your for your password. Enter it one last time. The configuration file will open in a text editor, most likely Nano. Scroll down to the end of the document and add the following line:
username ALL=NOPASSWD: ALL
Replace username with the username of the user you want to allow a passwordless sudo. So if the user is kari, you would enter:
kari ALL=NOPASSWD: ALL
Save and exit the file. Log out, log in as the user kari and test out your new passwordless sudo.
Note: this is something that is not recommended if you are using your computer in a public place or at your work
.
Comment