Please help, if I grant permissions to a user in the /etc/sudoers.d file like so:
newuser ALL=(ALL:ALL) ALL That user has all permissions. But I don´t want this user to be able to switch to the root user. Is this possible?
Or can anyone tell me how can I set up this user to be able to perform the most common admin tasks but not all of them like he is root.
11 Answer
Read man sudoers. Once you manage to decode the Extended Backus-Naur Form (see Extended Backus-Naur form article on wikipedia), you'll see that ALL=(ALL:ALL) ALL is the least restrictive way of using sudo.
You can restrict newuser in many ways.