See the sudo man page:
-U user, --other-user=user
Used in conjunction with the -l option to list the privileges for user instead of for the invoking user. The
security policy may restrict listing other users' privileges. The sudoers policy only allows root or a user
with the ALL privilege on the current host to use this option.
Statistics: Posted by cct — Wed Mar 06, 2024 5:53 pm