"리눅스 쉘 변경 chsh"의 두 판 사이의 차이

잔글 (Jmnote 사용자가 리눅스 쉘 권한 변경 chsh 문서를 리눅스 쉘권한 변경 chsh 문서로 옮겼습니다)
1번째 줄: 1번째 줄:
;change shell in linux; chsh
==개요==
;change shell in linux
;리눅스 chsh
;리눅스 계정 쉘 변경
;리눅스 계정 쉘 변경
;리눅스 계정 쉘 권한 바꾸기
;리눅스 계정 쉘 권한 바꾸기
;/usr/bin/chsh
* 쉘 변경하는 리눅스 명령어


==bash로 바꾸기==
==예시 1: bash로 바꾸기==
;명령어
;명령어
<source lang='bash'>
<source lang='bash'>
24번째 줄: 28번째 줄:
</source>
</source>


==nologin으로 바꾸기==
==예시 2: nologin으로 바꾸기==
;명령어
;명령어
<source lang='bash'>
<source lang='bash'>

2014년 11월 30일 (일) 14:48 판

1 개요

change shell in linux
리눅스 chsh
리눅스 계정 쉘 변경
리눅스 계정 쉘 권한 바꾸기
/usr/bin/chsh
  • 쉘 변경하는 리눅스 명령어

2 예시 1: bash로 바꾸기

명령어
chsh 계정명 -s /bin/bash
실행예시
[root@jmnote ~]# grep testuser /etc/passwd
testuser:x:502:502::/home/testuser:/sbin/nologin
[root@jmnote ~]# chsh testuser -s /bin/bash
Changing shell for testuser.
Shell changed.
[root@jmnote ~]# grep testuser /etc/passwd
testuser:x:502:502::/home/testuser:/bin/bash
[root@jmnote ~]# su - testuser
[testuser@jmnote ~]$

3 예시 2: nologin으로 바꾸기

명령어
chsh 계정명 -s /bin/nologin
실행예시
[root@jmnote ~]# grep testuser /etc/passwd
testuser:x:502:502::/home/testuser:/bin/bash
[root@jmnote ~]# chsh testuser -s /sbin/nologin
Changing shell for testuser.
Shell changed.
[root@jmnote ~]# grep testuser /etc/passwd
testuser:x:502:502::/home/testuser:/sbin/nologin
[root@jmnote ~]# su - testuser
This account is currently not available.

4 같이 보기

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