처음으로

리눅스마스터 2급

2021년 12월 11일 기출문제

35. 다음 중 ihduser가 로그인 셸을 변경했을 때 저장되는 파일로 알맞은 것은?
공유
정답보기
<<이전
다음>>
목록
  • 2022.03.08 12:13:24

    [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쉘로 변경이 됨이 해당파일에 저장

    0 0
  • 서버에 요청 중입니다. 잠시만 기다려 주십시오...