Skip to content

Ubuntu 26.06 sudoers file error #1060

Description

@MartinPaulo

With prey installed after an upgrade to Ubuntu 26.06, the following error is reported:

/etc/sudoers.d/51_prey_switcher:1:81: syntax error: wildcards are not allowed in command arguments
prey ALL=(ALL) NOPASSWD: /usr/sbin/iwlist, /usr/sbin/dmidecode, /usr/bin/nmcli, /usr/bin/su [A-Za-z]*, !/usr/bin/su root*, !/usr/bin/su -*
                                                                                ^~~~~~~~~~~~~~~~~~~~~

This is possibly because Ubuntu have switched to sudo-rs:

$ sudo -V | head -1
sudo-rs 0.2.13-0ubuntu1

And sudo-rs has a rule that wildcards are only supported in argument positions for a command as the final argument.

My work around was to change the line the file to read:

prey ALL=(ALL) NOPASSWD: /usr/sbin/iwlist, /usr/sbin/dmidecode, /usr/bin/nmcli

I'm reasonably certain this change stops prey running effectively…

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions