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…
With prey installed after an upgrade to Ubuntu 26.06, the following error is reported:
This is possibly because Ubuntu have switched to sudo-rs:
$ sudo -V | head -1 sudo-rs 0.2.13-0ubuntu1And 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:
I'm reasonably certain this change stops prey running effectively…