I am very used to using sudo -l -U <user>
to check another user's sudo capabilities but since version 18.04 I can no longer see this. It always comes back blank.
Is there some special setting I need to tweak?
Update
The user I am executing this with has the following permissions
(ALL : ALL) ALL
(ALL : ALL) NOPASSWD: ALL
as shown after executing sudo -l
Update2
the return code when I execute the command is 1
$ sudo -l -U other_user
$ echo $?
1
ALL
sudo privilege?echo $?
). The command should display something. Can you try once more and edit your post by adding the command AND its output?