리눅스 관리자도 알 수 없는 랜덤 패스워드 지정

Jmnote (토론 | 기여)님의 2020년 7월 25일 (토) 15:54 판 (→‎같이 보기)

1 개요

관리자도 알 수 없는 랜덤 패스워드 지정
echo 'root:'`od /dev/urandom -xN99` | chpasswd
echo '계정명:'`od /dev/urandom -xN99` | chpasswd
cat /dev/urandom | tr -cd "[:alnum:][:graph:]" | head -c 16 | passwd --stdin 계정명

2 실행예시

root@debian:~# echo 'root:'`od /dev/urandom -xN99` | chpasswd
root@debian:~#
[root@centos ~]# cat /dev/urandom | tr -cd "[:alnum:][:graph:]" | head -c 16 | passwd --stdin testuser
Changing password for user testuser.
passwd: all authentication tokens updated successfully.

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}