Script to find which users have sudo access in Linux



Script:

#!/bin/bash
for username in `cut -d: -f1 /etc/passwd`
do
  sudo -U $username -l
done


If you like please follow and comment