I have created a "normal" user with sudo privileges, lets say newuser. I created with the GUI Users and Groups and created as administrator. If i want to install a new program or whatever needs root permissions i have to do sudo and then put the root password. Ex: sudo apt install geany
I have tried to edit the visudo file giving to the user the same permissions as root user. I followed : https://www.liquidweb.com/kb/add-user-grant-root-privileges-ubuntu-18-04/
newuser ALL=(ALL:ALL)ALL
But still i cant execute apt update or apt upgrade or whatever without sudo. Thats make no sense. Ubuntu should not ask for root password as the newuser has the same privilegees as root.
Im missing something ?
Thanks in advance
sudo
does not ask for the root password, it asks for your password. It asks you to prove that it is really you, thesudo
user, not just someone who happens to find an open terminal session. Onlysu root
would ask for theroot
password.sudo -i
and thus "switch" to root. This way you will have the#
prompt and you will be able to enter your privileged commands withoutsudo
. Note that using the root prompt (#
) extensively is very dangerous and you should return to normal ($
) prompt ASAP by enteringexit
or Ctrl+D at command prompt.