[shell] 시스템에 root 권한을 가진 계정 알아보기.
시스템에 보통 수퍼 유저 권한을 가지신분은 root 하나라고 생각하는데
더 있을수도 있지요…한번 확인 해보세요.
grep ‘0:0’ /etc/passwd
혹은 주기적으로 관리 하시고 싶으시면 다음 스크립터를 cron 에 등록 시키면
됩니다.
grep ‘0:0’ /etc/passwd | awk ‘GEGIN {FS=”:”} {print $1}’ |
mail -s “‘date +”%D %T”‘” root
Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.
For the reason that the admin of this site is working, no uncertainty very quickly it will be renowned, due to its quality contents.
I just like the helpful information you provide in your articles
I am truly thankful to the owner of this web site who has shared this fantastic piece of writing at at this place.