In /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 apt update
.
The apt is an example i want FULL ROOT PERMISSIONS, another example is to be able to create/modify files everywhere.
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 /etc/sudoers
file:
#
# 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
sudo su -
and you will becomeroot
and not have to usesudo
. – Nasir Riley Sep 27 '18 at 22:31sudoers
file. Please undo the edit, and see my answer. – eyoung100 Sep 28 '18 at 02:47