How to check sudo access of other users?

Hi,
I always use "sudo -U user -l" as root and it gives me list of sudo access, that person have. But on one Solaris server, I can't run it. recently only I installed latest patchset on this server. Not sure, if that changed something on this. However, sudo package is showing old one.

# id -a stevenc
uid=30430(stevenc) gid=30430(stevenc) groups=20051(wta)
# /usr/local/bin/sudo -U stevenc -l
sudo: illegal option `-U'
usage: sudo -h | -K | -k | -L | -l | -V | -v
usage: sudo [-bEHPS] [-p prompt] [-u username|#uid] [VAR=value]
            {-i | -s | <command>}
usage: sudo -e [-S] [-p prompt] [-u username|#uid] file ...
# /usr/local/bin/sudo -u stevenc -l
sudo: the `-u' and '-l' options may not be used together
usage: sudo -h | -K | -k | -L | -l | -V | -v
usage: sudo [-bEHPS] [-p prompt] [-u username|#uid] [VAR=value]
            {-sudo -U mweimer -li | -s | <command>}
usage: sudo -e [-S] [-p prompt] [-u username|#uid] file ...
# pkginfo | grep -i sudo
system      OEuserenv                    User environment files - motd & issue, default dotfiles, sudoers configs
application SMCsudo                      sudo
# pkginfo -l SMCsudo
   PKGINST:  SMCsudo
      NAME:  sudo
  CATEGORY:  application
      ARCH:  sparc
   VERSION:  1.6.9p16
   BASEDIR:  /usr/local
    VENDOR:  Todd Miller et al
    PSTAMP:  Steve Christensen
  INSTDATE:  Oct 02 2009 16:12
     EMAIL:  steve@smc.vnet.net
    STATUS:  completely installed
     FILES:       30 installed pathnames
                   5 shared pathnames
                   9 directories
                   4 executables
                   2 setuid/setgid executables
                1310 blocks used (approx)

# cat /etc/release
                       Solaris 10 5/08 s10s_u5wos_10 SPARC
           Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                             Assembled 24 March 2008

# find / -name sudo
/var/log/tdr/Solaris-Patches/10_Recommended_CPU_2019-04/patches/152252-02/SUNWsudou/reloc/usr/bin/sudo
/var/log/tdr/Solaris-Patches/10_Recommended_CPU_2019-04/patches/152252-02/SUNWsudou/reloc/usr/lib/sudo
/var/log/tdr/Solaris-Patches/10_Recommended_CPU_2019-04/patches/152252-02/SUNWsudou/reloc/usr/share/doc/sudo
/var/log/tdr/Solaris-Patches/10_Recommended_CPU_2019-04/patches/152252-02/SUNWsudoS/reloc/usr/sfw/share/src/sudo
/var/run/sudo
/usr/local/bin/sudo
/usr/local/doc/sudo
#

Please suggest, if I am missing something here.

Thanks

How about:

sudo -u user sudo -l
3 Likes