리눅스 nologin 계정 패스워드 맞는지 확인

리눅스 nologin 계정 패스워드 맞는지 확인
리눅스 쉘 권한 없는 계정 패스워드 확인

1 방법[ | ]

명령어
ssh 계정명@localhost
실행예시
[root@zetawiki ~]# grep testuser /etc/passwd
testuser:x:504:504::/home/testuser:/bin/bash
[root@zetawiki ~]# su - testuser
This account is currently not available.
→ nologin 계정이라는 것은 확인할 수 있지만, 패스워드를 확인할 수는 없다.
[root@zetawiki ~]# ssh testuser@localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is 12:ab:c3:d4:56:e7:89:0f:12:34:a5:6b:7c:8d:90:12.
Are you sure you want to continue connecting (yes/no)?
yes Enter
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
testuser@localhost's password:
→ 패스워드를 입력해보자.
This account is currently not available.
Connection to localhost closed.
→ 패스워드는 맞지만 쉘 권한이 없다는 것을 알 수 있다.

2 같이 보기[ | ]

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