ubuntu su password code example
Example 1: ubuntu passwordless sudo
sudo vim /etc/sudoers
# Find `includedir /etc/sudoers.d` usually last line of file
username ALL=(ALL) NOPASSWD: ALL
Example 2: default root password ubuntu 18.04
$ sudo passwd
sudo vim /etc/sudoers
# Find `includedir /etc/sudoers.d` usually last line of file
username ALL=(ALL) NOPASSWD: ALL
$ sudo passwd