My user account on Ubuntu is olivier.
When I type the command groups olivier it returns:
olivier : olivier adm cdrom sudo dip plugdev lpadmin sambashare
So I am deducing I belong to the sudo group.
I have the following lines in my /etc/sudoers file:
#Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
If the members of group sudo can execute any commands, why do I need to use the sudo command when I want to execute a command with privileges (for example, a rm on a folder where I am not the owner) whereas I am logged with the user olivier?
# User privilege specification root ALL=(ALL:ALL) ALLI don't understand what is the difference with%sudo ALL=(ALL:ALL) ALL. When I am logged as root withsudo suI type any command – Olivier Boissé Nov 18 '17 at 15:32sudoersfile have any effect on what you can and can't do, if you aren't usingsudo? Osmosis? – hobbs Nov 19 '17 at 00:34#Allow members of group sudo to execute any command via sudo. I guess whoever wrote it thought that the last two words are implied by the comment being in thesudoersfile, i.e. the config file forsudo. – Paŭlo Ebermann Nov 19 '17 at 01:46