[root@centos7 ~]# cat /etc/passwd | grep ihd ihd:x:1001:1001::/home/ihd:/bin/bash
-> ihd사용자의 쉘이 /bin/bash임을 확인
[root@centos7 ~]# chsh -s /bin/sh ihd Changing shell for ihd. Shell changed. [root@centos7 ~]# cat /etc/passwd | grep ihd ihd:x:1001:1001::/home/ihd:/bin/sh -> /bin/bash -> /bin/sh쉘로 변경이 됨이 해당파일에 저장
[root@centos7 ~]# cat /etc/passwd | grep ihd
ihd:x:1001:1001::/home/ihd:/bin/bash
-> ihd사용자의 쉘이 /bin/bash임을 확인
[root@centos7 ~]# chsh -s /bin/sh ihd
Changing shell for ihd.
Shell changed.
[root@centos7 ~]# cat /etc/passwd | grep ihd
ihd:x:1001:1001::/home/ihd:/bin/sh
-> /bin/bash -> /bin/sh쉘로 변경이 됨이 해당파일에 저장