RHCE Exam A단계 : 4개의 Compulsory문제 + 5개의 일반문제로 구성(최소 3개 이상은 풀어야 함) 단 Compulsory문제는 1시간안에 다 풀어야 합니다. B단계 : Troubleshootng 문제. A단계를 시작합니다. (총 80점 입니다.) ●Compulsory 1:(T01) the examiner can log into your system as root using the password rW9ySX. The home directory must be /root. (compulsory) 1. Single usermod로 부팅하기 <e>키를 누른다. <e>키를 누른다. 줄 맨 끝에 S 또는 1일 입력하고 Enter. “B”키를 눌러 부팅한다.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
RHCE Exam
A단계 : 4개의 Compulsory문제 + 5개의 일반문제로 구성(최소 3개 이상은 풀어야 함)
단 Compulsory문제는 1시간안에 다 풀어야 합니다.
B단계 : Troubleshootng 문제.
A단계를 시작합니다. (총 80점 입니다.)
●Compulsory 1:(T01) the examiner can log into your system as root using the password
rW9ySX. The home directory must be /root. (compulsory)
1. Single usermod로 부팅하기
<e>키를 누른다. <e>키를 누른다.
줄 맨 끝에 S 또는 1일 입력하고 Enter. “B”키를 눌러 부팅한다.
2. sh-3.2# passwd
다른 점검 사항 : 패스워드 만료 기간을 알아본 후 변경한다.
참고) 명령어 chage에 대한 설명
Chage(change user password expire information)
사용자 패스워드 만기일을 설정하고 변경하는 명령어입니다.
시스템을 보안하는 것으로 패스워드를 관리하는데에 쓰이는 명령어 입니다. 이것은 사용자 aging
정보를 설정/변경하는 명령어입니다.
Chage 명령어 옵션
-d : 패스워드의 마지막 변경 날짜를 YYYY-MM-DD형태로 나타낸다.
-E : 사용자 게정이 더 이상 접근이 불가능한 날짜를 지정한다.
-I : 계정의 패스워드가 만기가 되어, 계정을 사용할 수 없게 되는 날짜를 지정하고 그 이후에 패
스워드를 잠금 상태로 만든다.
-M : 패스워드가 유효한 최대 날짜를 지정한다.
-m : 패스워드가 설정이 되면 그 이후에 다시 변경가능한 날을 지정
-W : 패스워드가 만기가 되기전에 안내 메시지를 보낼 날짜를 지정한다.
-ㅣ[계정명] : 사용자의 패스워드 만기 정보를 보여준다.
사용법
1) Chage –l 계정명
아래 그림은 strong이란 계정 사용자의 aging 정보를 보여주고 있습니다.
Last password change
마지막으로 패스워드를 변경한 날을 알려줍니다.
패스워드를 변경한 적이 없다면 처음 계정을 생성 했을 시에 패스워드를 설정하였던 날로 설정됩
니다.
Password expires
패스워드 만료기간을 알려줍니다.
기준은 패스워드를 변경한 날이며, 몇일 이후에 패스워드르 만료할 것이낙에 대해 보여줍니다.
다른 점검 사항 : /etc/nologin파일 삭제 및 /etc/rc.local 파일 확인.
3. home 디렉토리를 반드시 /root로 설정해야 한다.
Reboot
●Compulsory 2:(T02) ping 172.25.254.254 is successful, and your system uses static
networking as described in /root/network.txt (compulsory)
1. netstat –ar로 default gateway항목 설정 유무확인
2. default gateway 설정
●Compulsory 3:(T03) dig server1.my133t.org successfully resolves that hostname using DNS
(compulsory)
1. dig는 DNS lookup utility이다. DNS설정 파일인 /etc/resolve.conf 점검.
●Compulsory 4:(T09) your system has a new 100MB physical partition mounted under
/mnt/new with a 100MB ext3 _lesystem. Note: because partition sizes are seldom exactly what is
speci_ed when they are created, anything within the range of 90 to 110MB is acceptable
(compulsory).
1. 약 100MB의 새로운 파일 시스템을 생성하여, /mnt/new로 마운트한다.
Compusory 문제가 다 끝났습니다.
시스템을 한번 리부팅하고, 감독관에게 평가를 부탁합니다.
여기서 부터는 NON Compusory 문제입니다.
●Services:(T05) the requirement described in /root/services is met (어떤 사용자의 홈디렉토리는 공유 디렉토리이다. 하지만 showmount –e로 확인시 공유 디렉토리가
보이지 않는다. 사용자의 공유 홈 디렉토리에 Access 할 수 있도록 만드시오.)
1. /etc/exports에 공유 디렉토리가 설정되어 있는지 확인
2. NFS관련 데몬들이 실행 중인지 확인.
3. 정상적으로 공유 폴더가 보이는지 확인.
●Wildcard:(T06) the requirement described in /root/wildcard is met (그래픽 로그인이 가능하도록 설정.)
1. /etc/inittab 파일에서 id 설정을 5로 변경.
추가문제
●Xserver mouse 설정이 안되어서 X serer부팅이 불가능할 때. 1. System-config-display로 설정변경. 또는 /etc/X11/xorg.conf 설정 변경.
마우스 설정 관련 에러가 발생하면 system-config-mouse로 설정 변경
2. 마우스 관련 드라이버 설치가 필요할 수도 있다. (Applications-Add/Remove Software)
3. /tmp폴더가 full 찼거나 폴더가 없는 경우.
4. Quota 설정 제한이 있는 경우. 필요 없는 파일을 삭제 합니다.
5. xfs 서비스의 실행 유무.
reboot
●Storage:(T10) the requirement described in /root/lvm is met One Logical Volume named lv1 is created under vg0. The Initial Size of that Logical Volume is
100MB. Now you required the size 500MB. Successfully make the size of that Logical Volume 500M
without losing any data. AS well as size should be increased online.
1. LVM 파티션 확인.
2. Phycal Volume 및 Volume Group 확인.
3. Logical Volume 확인.
4. Logical Volume 확장.
●Wildcard:(T06) the requirement described in /root/wildcard is met neo user tried by: dd if=/dev/zero of=/home/neo/somefile bs=1024 coutn=70 files created
successfully. Again neo tried to create file having 70K using following command:
dd if=/dev/zero of=/home/neo/somefiles bs=1024 count=70 but he is unable to create the file.
Make the user can create the file less then 70k.
Neo 계정으로 로그인 하여 quota를 테스트해 본다.
Old version 문제.
●Your are a system administrator. Using log files make it very easy to identify problems. Now
there are 50server running as Mail, Web, Proxy, DNS etc. You want to centralize the log from all
servers onto a LOG Server. How will you configure the LOG server?
●There is one partition named /dev/hda14 mounted on /data. The owner of /data is root user and
root group. Permission is set to full the owner user, read and execute to the group member and no
permission to others. Now you should give the full permission to user usesr1 without changing
pervious permission.
●The examiner told you that the password of root is rehdat. When you tried to login display the
error message and redisplayed the login screen. You changed the root password, again unable to
login as a root. How will you make successfully login as a root.
1. Compusory 1번 문제 참고하고 /etc/securetty에서 주석 처리된 부분이나 삭제된 부분을 확인한다.
●There are more then 400 Computers in your Office. You are appointed as a system Administrator.
But you don’t have router. So, you are going to use your one linux server as a router. How will you
enable IP packets forward?
1. echo 1 > /proc/sys/net/ipv4/ip_forward
2. 영구적 변경을 위해서 /etc/systctl.conf 파일을 수정해 준다.
3. 다음 명령어를 사용하여 새 구성 파일을 커널에 동기화 합니다.
시스템을 재부팅 합니다. 관리자에게 점검을 부탁 합니다. 다음 B단계로 넘어가면 다시 A단계 문제를
풀수 없으니, 반드시 신중하게 결정해서 B단계로 넘어 가도록 합니다.
B단계 Troubleshooting 문제를 시작합니다. (총 20점 입니다.)
강사가 제공하는 CD로 부팅하거나, NFS를 통해 새로 OS를 설치 하고 나면 시스템이 정상
적으로 부팅되지 않을 것입니다. 이것을 중간에 어떠한 수정도 없이runlevel 3 이나 5로 부
팅이 된다면 20점을 얻게 되며, sulogin으로 부팅만 가능하게 된다면 10점을 얻게 되며, 시
스템이 OS로 전혀 부팅할 수 없으면 0점을 받게 됩니다. 이 단계에서는 복구 환경을 지원