돌할우밤 공부방

1. /data Directory is shared from the server1.example.com server. Mount the shared directory that:

1. /data 디렉토리는 server1.example.com 서버에서 공유됩니다. 다음 위치의 공유 디렉토리를 마운트합니다.

 

더보기

vi /etc/fstab

server1.example.com:/data        /mnt/data          nfs defaults        0 0

mount -a

 

2. You are new System Administrator and from now you are going to handle the system and your main task is Network monitoring, Backup and Restore. But you don't know the root password. Change the root password to redhat and login in default Runlevel.

2. 새로운 시스템 관리자가 되어 이제 시스템을 처리하게 되며 주요 작업은 네트워크 모니터링, 백업 및 복원입니다. 하지만 루트 암호를 모르잖아요. 루트 암호를 Redhat로 변경하고 기본 Runlevel로 로그인합니다.

 

더보기

부팅화면에서 'e' 버튼을 눌러 edit모드 활성화

ro 와 rhgb quiet를 찾고 각각 rw, init=/bin/bash로 수정후 Ctrl+x 누른다

passwd입력

Redhat

Redhat(2번 입력해서 비밀번호 변경)

touch /.autorelabel

exec /sbin/init (자동 재부팅)

 

3. Your System is configured in 192.168.0.0/24 Network and your nameserver is 192.168.0.254. Make successfully resolve to server1.example.com.

3. 시스템이 192.168.0.0/24 Network로 구성되어 있으며 이름 서버는 192.168.0.254입니다. server1.example.com으로 성공적으로 해결하십시오.

 

더보기

vi /etc/resolv.conf

nameserver=192.168.0.254

systemctl restart network

nslookup server1.example.com

 

4. Some users home directory is shared from your system. Using showmount -e localhost command, the shared directory is not shown. Make access the shared users home directory.

4. 일부 사용자의 홈 디렉토리가 시스템에서 공유됩니다. showmount -e localhost 명령을 사용하면 공유 디렉토리가 표시되지 않습니다. 공유 사용자의 홈 디렉토리에 액세스합니다.

(내 자신이 임의로 지정한 로컬호스트 주소 : 192.168.247.136)

 

더보기

vi /etc/fstab

192.168.247.136/data          /home/sasuke          nfs          defaults             0 0

mount -a

 

5.You have a domain named www.rhce.com associated IP address is 192.100.0.2. Configure the Apache web server by implementing the SSL for encryption communication. 일단 하지말것

5. 이름이 www.rhce.com인 도메인이 있습니다. IP 주소는 192.100.0.2입니다. 암호화 통신용 SSL을 구현하여 Apache 웹 서버를 구성하십시오.

 

더보기

vi /etc/httpd/conf.d/ssl.conf <VirtualHost 192.100.0.2> ServerName www.rhce.com DocumentRoot /var/www/rhce DirectoryIndex index.html index.htm
ServerAdmin webmaster@rhce.com SSLEngine on SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key </
VirtualHost>
cd /etc/httpd/conf
3 make testcert
Create the directory and index page on specified path. (Index page can download from ftp://server1.example.com at exam time) service httpd start|restart chkconfig httpd on
Apache can provide encrypted communications using SSL (Secure Socket Layer). To make use of encrypted communication, a client must request to https protocol, which is uses port 443. For HTTPS protocol required the certificate file and key file. ~라고 답은 나와 있음

 

6.Who ever creates the files/directories on archive group owner should be automatically should be the same group owner of archive.

6. 아카이브 그룹 소유자에 파일/디렉토리를 생성하는 사용자는 자동으로 아카이브의 동일한 그룹 소유자가 되어야 합니다.

 

더보기

chmod g+s /arachive

 

7. Make on /archive directory that only the user owner and group owner member can fully access.

7. /archive 디렉토리에 사용자 소유자 및 그룹 소유자 멤버만 완전히 액세스할 수 있도록 합니다.

 

더보기

chmod 770 /archive

 

8. SELinux must run in force mode.

8. SELinux는 강제 모드에서 실행되어야 합니다.

 

더보기

vi /etc/selinux/config

SELINUX=enforcing (:wq)

reboot

getenforce

 

9.In the system, mounted the iso image /root/examine.iso to/mnt/iso directory. And enable automatically mount (permanent mount) after restart system.

9. 시스템에서 iso image /root/speck.iso를 /mnt/iso 디렉토리에 마운트합니다. 또한 시스템을 다시 시작한 후 자동 마운트(영구 마운트)를 사용하도록 설정합니다.

 

더보기

vi /etc/fstab

/root/speck.iso           /mnt/iso          iso9660           loop           0 0

mount -a

 

10.
1. Find all sizes of 10k file or directory under the /etc directory, and copy to /tmp/findfiles directory.
2. Find all the files or directories with Lucy as the owner, and copy to /tmp/findfiles directory.

10.
1. /etc 디렉토리에서 모든 크기의 10k 파일 또는 디렉토리를 찾아 /tmp/findfiles 디렉토리에 복사합니다.

 

더보기

find /etc -s 10K -exec cp {} /tmp/findfiles \;


2. Lucy가 소유자로 있는 모든 파일 또는 디렉토리를 찾아 /tmp/find files 디렉토리에 복사합니다.

 

더보기

find / -u Lucy -exec cp {} /tmp/findfiles \;

 

-점점 문제와 답이 눈에 들어오기 시작하나 이해도가 아직 부족함

'IT_공부 > Linux' 카테고리의 다른 글

/Linux/RHCSA/연습문제 1  (0) 2021.07.06
/Linux/RHCSA/12일차(예제 풀기)  (0) 2021.07.04
/Linux/RHCSA/10일차(예제 풀기)  (0) 2021.07.03
/Linux/RHCSA/9일차(예제 풀기)  (0) 2021.07.03
/Linux/RHCSA/8일차(예제 풀기)  (0) 2021.07.02

>