sudo-rs icon indicating copy to clipboard operation
sudo-rs copied to clipboard

Error when parsing sudoers configuration with domain groups / groups with "@domain"

Open mpibpc-mroose opened this issue 7 months ago • 3 comments
trafficstars

Describe the bug sudo-rs seems to be unable to work with active directory domain groups in sudoers files. Seems it stumbles upon the @ when parsing those files.

To Reproduce Steps to reproduce the behavior:

  1. Install ' sudo-rs` on Ubuntu 24.04 using apt
  2. Use the default contents in /etc/sudoers-rs
  3. Create a sudoers configuration such as /etc/sudoers.d/01_server_admins_group
%[email protected]   ALL=(ALL) NOPASSWD: ALL
  1. Run the following command sudo-rs ls
  2. See error:
/etc/sudoers.d/01_server_admins_group:2:13: expected host name
%[email protected]   ALL=(ALL) NOPASSWD: ALL
            ^                  

mpibpc-mroose avatar Apr 03 '25 07:04 mpibpc-mroose