Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Pochu
  • Content: Threads
  • Order by date
  1. Pochu

    Script to find user having sudo access to root

    #!/bin/bash count=$(cat /etc/sudoers | grep "ALL" | grep -v ^# | wc -l) echo "The following users have sudo access to root" for i in $(seq 1 $count) do line=$(cat /etc/sudoers | grep "ALL" | grep -v ^# | head -n $i | tail -n 1 | tr "=()" " ") cnt=$(echo $line | sed -e 's/[^ALL]/...

Part and Inventory Search

Back
Top