Found a sudo method that does not require a password
Usually when adding an administrator in /etc/sudoers, usually write like this:
deep ALL=(ALL) ALL
Although I don't understand what the three ALLs in this sentence mean, I write it like this every time. I recently discovered that for Raspberry Pi 2, sudo does not require a password. Take a look at its sudoers file. Mark comes down.
deep ALL=(ALL) NOPASSWD: ALL
Note: Sometimes you set the user to nopasswd, but it doesn't work. The reason is that it is overwritten by the subsequent group settings. You need to change the group settings to nopasswd.
%sudo ALL=(ALL) NOPASSWD: ALL