User cannot sudo with "$" in the name

Latest response

We are beginning to add our RHEL 7.9 Linux machines to AD. As a part of that we would like to restrict the use of sudo to the administrators. The admin group, we will call it ServerAdmins, was added it to the sudoers file.
%DOMAIN\ServerAdmins ALL=(ALL) ALL

The issue we have is the individual administrator ID has a "$" in the name. EXAMPLE: admin$user. When the admin logs in and tries to sudo they get the dreaded "you are not allowed to sudu".

However if we add a single member to the sudoers file this way it succeeds:

%DOMAIN\admin\$user ALL=(ALL) ALL

I am stumped on how to proceed. We would not like to have to use two admin IDs one for Linux and one for everything else. Especially since you can log in just fine.

Responses