Public bug reported:

(Forwarded from upstream:
https://github.com/trifectatechfoundation/sudo-rs/issues/1508)

Defaults@[[:space:]]+Host_List is rejected, while space following ! (cmnd), : 
(user) and > (runas) is accepted.
OG sudo supports all of them.

To Reproduce
Steps to reproduce the behavior:

$ ./target/debug/visudo -c - << 'EOF'
Defaults@ ALL fqdn
Defaults: ALL fqdn
Defaults! ALL fqdn
Defaults> ALL fqdn
EOF
stdin:1:10: syntax error: expected host name
visudo: invalid sudoers file

Expected behavior

Defaults@[[:space:]]+Host_List is parsed correctly.

Environment (please complete the following information):

    Linux distribution: EndeavourOS
    sudo-rs version [sudo --version] or commit hash: e284d7b

Additional context
Add any other context about the problem here.

** Affects: sudo-rs
     Importance: Unknown
         Status: Unknown

** Affects: rust-sudo-rs (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2160211

Title:
  sudoers does not accept space between Defaults@ and hostname list

To manage notifications about this bug go to:
https://bugs.launchpad.net/sudo-rs/+bug/2160211/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to