Linux security

Sort and rank of who is using sudo on the box

Quick one liner to remember when you work on your [easyazon_link identifier=”1118999878″ locale=”US” tag=”wn0d5-20″] Linux [/easyazon_link] box. It could be useful command to know. Here it is, this the one liner that will tell you who is using sudo command and it will all sort out and rank in your output for better reading 🙂

egrep -o “sudo:\s+\S+\s+:” /var/log/secure | sort | uniq -c | sort -g

Have fun!

[easyazon_image align=”none” height=”110″ identifier=”111898384X” locale=”US” src=”” tag=”wn0d5-20″ width=”88″]

Leave a Reply