** Description changed: + (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 + Linux distribution: EndeavourOS + sudo-rs version [sudo --version] or commit hash: e284d7b Additional context Add any other context about the problem here.
** Bug watch added: github.com/trifectatechfoundation/sudo-rs/issues #1508 https://github.com/trifectatechfoundation/sudo-rs/issues/1508 ** Also affects: sudo-rs via https://github.com/trifectatechfoundation/sudo-rs/issues/1508 Importance: Unknown Status: Unknown ** Changed in: rust-sudo-rs (Ubuntu) Importance: Undecided => Medium ** Changed in: rust-sudo-rs (Ubuntu) Status: New => Triaged ** Description changed: - (Forwarded from upstream: + (Tracking bug 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. -- 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
