카테고리 없음

RHCSA 11일차

kiminaki 2021. 6. 30. 21:38

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

 

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.

 

rebootrd.breadmount -o remount,rw /sysrootchroot /sysrootpasswd바꾸기바꾸기확인touch /.autolabelexit logout

 

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.

 

vi /etc/sysconfig/network-scripts

 

DNS1=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.

 

이거는 만약 한다면 주어진 nfs 서버가 있다고 가정

 

vi /etc/fstab

nfs주소/data /내디렉터린 nfs defaults 0 0

 

 

 

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. 일단 하지말것

 

 

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

 

chmod g+s /archive

 

 

 

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

 

chmod 770 /archive

 

 

8. SELinux must run in force mode.

/etc/selinux/config

reboot

 

 

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

vi /etc/fstab

/root/examine.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.

 

find /etc -size 10k -exec cp {} /tmp/findfiles \;

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

 

답안지에서는 

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

-a옵션은 소유권을 유지한다고 합니다

 

답안지 

따르시는게 좋을거같아요 ~