linux
switch to root without password, ("sudo su" command)
Use visudo, append line below. (update the username)
All lines starting with # are comments
root ALL=(ALL:ALL) ALL – this line means that the root user has unlimited privileges and can run any command on the system
%admin ALL=(ALL) ALL – the % sign specifies a group. Anyone in the admin group has the same privileges as of root user
%sudo ALL=(ALL:ALL) ALL – all users in the sudo group have the privileges to run any command
https://www.cyberciti.biz/faq/linux-unix-running-sudo-command-without-a-password/
https://www.hostinger.com/tutorials/sudo-and-the-sudoers-file/