최신 EX200 Korean 무료덤프 - RedHat Red Hat Certified System Administrator - RHCSA (EX200 Korean Version)
autofs를 구성합니다.
필요에 따라 LDAP의 홈 디렉토리에 autofs가 자동으로 마운트되도록 구성합니다.
server.domain11.example.com은 NFS를 사용하여 홈을 시스템에 공유합니다. 이 파일 시스템에는 사용자 ldapuserX의 사전 구성된 홈 디렉토리가 포함되어 있습니다.
ldapuserX의 홈 디렉토리는 다음과 같습니다.
server.domain11.example.com /홈/게스트/ldapuser
ldapuserX의 홈 디렉토리는 로컬 /home/guests의 ldapuserX에 자동으로 마운트되어야 합니다. 홈 디렉토리의 쓰기 권한은 사용자 ldapuser1에 대해 사용 가능해야 합니다. 비밀번호는 password입니다.
필요에 따라 LDAP의 홈 디렉토리에 autofs가 자동으로 마운트되도록 구성합니다.
server.domain11.example.com은 NFS를 사용하여 홈을 시스템에 공유합니다. 이 파일 시스템에는 사용자 ldapuserX의 사전 구성된 홈 디렉토리가 포함되어 있습니다.
ldapuserX의 홈 디렉토리는 다음과 같습니다.
server.domain11.example.com /홈/게스트/ldapuser
ldapuserX의 홈 디렉토리는 로컬 /home/guests의 ldapuserX에 자동으로 마운트되어야 합니다. 홈 디렉토리의 쓰기 권한은 사용자 ldapuser1에 대해 사용 가능해야 합니다. 비밀번호는 password입니다.
정답:
yum install -y autofs
mkdir /home/rehome
/etc/auto.master
/home/rehome/etc/auto.ldap
Keep then exit
cp /etc/auto.misc /etc/auto.ldap
/etc/auto.ldap
ldapuserX -fstype=nfs,rw server.domain11.example.com:/home/guests/
Keep then exit
systemctl start autofs
systemctl enable autofs
su - ldapuserX// test
If the above solutions cannot create files or the command prompt is -bash-4.2$, it maybe exist multi-level directory, this needs to change the server.domain11.example.com:/home/guests/ to server.domain11.example.com:/home/guests/ldapuserX. What is multi-level directory? It means there is a directory of ldapuserX under the /home/guests/ldapuserX in the questions. This directory is the real directory.
mkdir /home/rehome
/etc/auto.master
/home/rehome/etc/auto.ldap
Keep then exit
cp /etc/auto.misc /etc/auto.ldap
/etc/auto.ldap
ldapuserX -fstype=nfs,rw server.domain11.example.com:/home/guests/
Keep then exit
systemctl start autofs
systemctl enable autofs
su - ldapuserX// test
If the above solutions cannot create files or the command prompt is -bash-4.2$, it maybe exist multi-level directory, this needs to change the server.domain11.example.com:/home/guests/ to server.domain11.example.com:/home/guests/ldapuserX. What is multi-level directory? It means there is a directory of ldapuserX under the /home/guests/ldapuserX in the questions. This directory is the real directory.
/etc/testfile 파일에서 abcde가 포함된 행을 찾아 /tmp/testfile에 쓰고, 시퀀스는 /etc/testfile과 동일하게 요청합니다.
정답:
# cat /etc/testfile | while read line;
do
echo $line | grep abcde | tee -a /tmp/testfile
done
OR
grep `abcde' /etc/testfile > /tmp/testfile
do
echo $line | grep abcde | tee -a /tmp/testfile
done
OR
grep `abcde' /etc/testfile > /tmp/testfile
SELinux는 강제 모드로 실행해야 합니다.
정답:
/etc/sysconfig/selinux
SELINUX=enforcing
SELINUX=enforcing
부팅 시 자동으로 적용되는 2G 스왑 파티션을 생성하면 원래 스왑 파티션에 영향을 미치지 않습니다.
정답:
# fdisk /dev/sda
p
(check Partition table)
n
(create new partition: press e to create extended partition, press p to create the main partition, and the extended partition is further divided into logical partitions) Enter
+2G
t
l
W
partx -a /dev/sda
partprobe
mkswap /dev/sda8
Copy UUID
swapon -a
vim /etc/fstab
UUID=XXXXX swap swap defaults 0 0
(swapon -s)
p
(check Partition table)
n
(create new partition: press e to create extended partition, press p to create the main partition, and the extended partition is further divided into logical partitions) Enter
+2G
t
l
W
partx -a /dev/sda
partprobe
mkswap /dev/sda8
Copy UUID
swapon -a
vim /etc/fstab
UUID=XXXXX swap swap defaults 0 0
(swapon -s)
사용자 인증은 192.168.0.254의 ldap 도메인에서 제공되었습니다. ldapuser를 얻으려면 다음 요구 사항에 따라야 합니다.
-LdapuserX는 시스템에 로그인할 수 있어야 하며, X는 호스트 이름 번호입니다. 하지만 ldapuser의 홈 디렉토리는 autofs 서버에서 자동으로 마운트할 때까지 마운트할 수 없습니다.
- 모든 LDAP 사용자의 비밀번호는 "password"입니다.
-LdapuserX는 시스템에 로그인할 수 있어야 하며, X는 호스트 이름 번호입니다. 하지만 ldapuser의 홈 디렉토리는 autofs 서버에서 자동으로 마운트할 때까지 마운트할 수 없습니다.
- 모든 LDAP 사용자의 비밀번호는 "password"입니다.
정답:
system-config-authentication &


참고사항:
NFS: NFS 강사.example.com:/var/ftp/pub/rhel6/dvd
맛있어요: http://instructor.example.com/pub/rhel6/dvd
LDAP: http://instructor.example.com/pub/EXAMPLE-CA-CERT
NFS: NFS 강사.example.com:/var/ftp/pub/rhel6/dvd
맛있어요: http://instructor.example.com/pub/rhel6/dvd
LDAP: http://instructor.example.com/pub/EXAMPLE-CA-CERT
정답:
Install dialog package.
시스템을 server.domain11.example.com의 NTP 클라이언트로 구성하세요.
정답:
#system-config-date
Note: dialog box will open in that
Check mark Synchronize date and time over network. Remove all the NTP SERVER and click ADD and type server.domain11.example.com
****************And then press ENTER and the press OK***************
Note: dialog box will open in that
Check mark Synchronize date and time over network. Remove all the NTP SERVER and click ADD and type server.domain11.example.com
****************And then press ENTER and the press OK***************
시스템에 로컬 논리 볼륨이 있는데, common으로 명명되고 VGSRV 볼륨 그룹에 속하며 /common 디렉토리에 마운트합니다. 크기 정의는 128MB입니다.
요구 사항:
데이터 손실 없이 논리 볼륨을 190MB까지 확장합니다.
a. 확장 후 허용 크기는 160-160MB입니다.
요구 사항:
데이터 손실 없이 논리 볼륨을 190MB까지 확장합니다.
a. 확장 후 허용 크기는 160-160MB입니다.
정답:
lvextend -L 190M /dev/mapper/vgsrv-common resize2fs /dev/mapper/vgsrv-common
다음 요구 사항에 따라 사용자, 사용자 그룹 및 그룹 구성원을 생성합니다.
- admin이라는 그룹
- mary라는 사용자이고 2차 그룹인 admin에 속합니다.
- alice라는 사용자이고 2차 그룹인 admin에 속합니다.
- bobby라는 사용자, bobby의 로그인 셸은 비대화형이어야 합니다. Bobby는 보조 그룹인 admin에 속하지 않습니다.
Mary, Alice, bobby 사용자는 사용자 비밀번호로 "password"를 설정해야 합니다.
- admin이라는 그룹
- mary라는 사용자이고 2차 그룹인 admin에 속합니다.
- alice라는 사용자이고 2차 그룹인 admin에 속합니다.
- bobby라는 사용자, bobby의 로그인 셸은 비대화형이어야 합니다. Bobby는 보조 그룹인 admin에 속하지 않습니다.
Mary, Alice, bobby 사용자는 사용자 비밀번호로 "password"를 설정해야 합니다.
정답:
groupadd admin
useradd -G admin mary
useradd -G admin alice
useradd -s /sbin/nologin bobby
echo "password" | passwd --stdin mary
echo "password" | passwd --stdin alice
echo "password" | passwd --stdin bobby
useradd -G admin mary
useradd -G admin alice
useradd -s /sbin/nologin bobby
echo "password" | passwd --stdin mary
echo "password" | passwd --stdin alice
echo "password" | passwd --stdin bobby
1부(Node1 서버)
작업 11 [향후 작업 일정]
사용자 natasha는 매일 현지 시간으로 14:23에 실행되는 cron 작업을 구성해야 하며 동일한 cron 작업이 2분마다 실행되어 다음을 실행합니다.
/bin/echo 안녕하세요
작업 11 [향후 작업 일정]
사용자 natasha는 매일 현지 시간으로 14:23에 실행되는 cron 작업을 구성해야 하며 동일한 cron 작업이 2분마다 실행되어 다음을 실행합니다.
/bin/echo 안녕하세요
정답:
* [root@node1 ~]# crontab -l -u natasha
no crontab for natasha
[root@node1 ~]# crontab -e -u natasha
23 14 * * * /bin/echo hello
*/2 * * * * /bin/echo 2min
crontab: installing new crontab
[root@node1 ~]# crontab -l -u natasha
23 14 * * * /bin/echo hello
*/2 * * * * /bin/echo 2min
[root@node1 ~]# systemctl status crond.service
* ### For Checking ###
[root@node1 ~]# tail -f /var/log/cron
Mar 23 13:23:48 node1 crontab[10636]: (root) REPLACE (natasha)
Mar 23 13:23:48 node1 crontab[10636]: (root) END EDIT (natasha)
Mar 23 13:23:50 node1 crontab[10638]: (root) LIST (natasha)
Mar 23 13:24:01 node1 crond[1349]: (root) FAILED (loading cron table)
Mar 23 13:24:02 node1 CROND[10673]: (natasha) CMD (/bin/echo 2min)
no crontab for natasha
[root@node1 ~]# crontab -e -u natasha
23 14 * * * /bin/echo hello
*/2 * * * * /bin/echo 2min
crontab: installing new crontab
[root@node1 ~]# crontab -l -u natasha
23 14 * * * /bin/echo hello
*/2 * * * * /bin/echo 2min
[root@node1 ~]# systemctl status crond.service
* ### For Checking ###
[root@node1 ~]# tail -f /var/log/cron
Mar 23 13:23:48 node1 crontab[10636]: (root) REPLACE (natasha)
Mar 23 13:23:48 node1 crontab[10636]: (root) END EDIT (natasha)
Mar 23 13:23:50 node1 crontab[10638]: (root) LIST (natasha)
Mar 23 13:24:01 node1 crond[1349]: (root) FAILED (loading cron table)
Mar 23 13:24:02 node1 CROND[10673]: (natasha) CMD (/bin/echo 2min)