/etc/sudoers i added:
%myuser ALL=(ALL) NOPASSWD:ALL
Now if i type
sudo apt update i don' t need to type the password.
But i want full root permissions: namely, i want to use only
The apt is an example i want FULL ROOT PERMISSIONS, another example create/modify files everywhere.
I know that i can log in as root (in some OS), but is not to grant root permissions to an user.
I tried to use the root line (
root ALL=(ALL:ALL) ALL) in the myuser line but nothing:
%myuser ALL=(ALL:ALL) ALL
This is my
# # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults mail_badpass Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL scorpion ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d %scorpion ALL=(ALL) NOPASSWD:ALL
I changed the user's UID and GID to 0, but is wrong never do it it will break the user.
Now this is my terminal:
I have no name!@my-pc.
I cannot use
su. The root user is not allowed to log in in this system. I' m switching to Debian now i' m on Ubuntu.
I already know how to fix it, log in with CTRL+ALT+F1 and root credentials, then set as before UID and GID.
On Debian initially works but after reboot i can' t login. I cannot change the password
passwd: myuser 'myuser' does not exist. So i set as before the UID and GID, i tried to change the password but:
passwd: Authentication token manipulation error passwd: password unchanged
When i log in i get wrong password.