I have joined my Ubuntu server to Windows AD environment. Ubuntu server can successfully authenticate with the AD. I want to give Windows "domain admins" group to root privileges.
then I edited /etc/sudoers file and added
%TEST\\domain\ admins ALL=(ALL:ALL) ALL
like this (test.com is my domain name)
but when i try to run sudo commands it gives me
linuxadmin is not in the sudoers file. This incident will be reported.
(I added linuxadmin to domain admins group, My AD domain is running under windows 2016 and linux version is Ubuntu 16.04.5 LTS)