#lastlog -t 10000 > temp1; lastlog -t 10 > temp2; diff temp1 temp2;
for i in `sudo lastlog | grep -v 'pts' | awk -F ' ' '{print $1}'`; do sudo more /etc/passwd |grep /bin/bash |awk -F: '{print $1}' |grep $i; done
0 Comments:
Post a Comment