I have a Linux host that runs on CentOS 7, joined to domain through
My goal is to provide ReadOnly access to one of the AD groups say "LinuxRO-USR", the users of this group should only be able to sign on using their AD credentials and access their home directory along with other non-sudo commands.
I know adding the following to the sudoers file will also give Sudo access to the users of that group.
%LinuxRO-USR@example.com ALL=(ALL) ALL.
Whereas, I want to restricate the access of LinuxRO-USR group such that if one of it's users tries to run any sudo command like
sudo fdisk -l, he should not be provided with the output of it. How can I achieve this?