2013년 6월 21일 금요일

우분투 사용자 계정 목록


a=$(grep ^UID_MIN /etc/login.defs | awk '{print $2}')
b=$(grep ^UID_MAX /etc/login.defs | awk '{print $2}')
c=$(grep /bin/bash /etc/passwd | awk -F':' '{print $1}')
d=$(awk -F':' -v "a=$a" -v "b=$b" '{ if ( $3>=a && $3<=b ) print $1}' /etc/passwd)
echo -e "$c\n$d" | sort | uniq
 

댓글 없음:

댓글 쓰기

국정원의 댓글 공작을 지탄합니다.

UPBIT is a South Korean company, and people died of suicide cause of coin investment.

 UPBIT is a South Korean company, and people died of suicide cause of coin. The company helps the people who control the market price manipu...