Ex 200
Ex 200
http://www.validtorrent.com
High-quality valid dumps & reliable dumps torrent & useful PDF torrent
RedHat EX200 valid & EX200 exam torrent & EX200 book torrent
IT Certification Guaranteed, The Easy Way!
Exam : EX200
Vendor : RedHat
Version : DEMO
QUESTION NO: 1
Part 2 (on Node2 Server)
Task 2 [Installing and Updating Software Packages]
Configure your system to use this location as a default repository:
http://utility.domain15.example.com/BaseOS
http://utility.domain15.example.com/AppStream
Also configure your GPG key to use this location
http://utility.domain15.example.com/RPM-GPG-KEY-redhat-release
Answer:
[root@node1 ~]# vim /etc/yum.repos.d/redhat.repo
[BaseOS]
name=BaseOS
baseurl=http://utility.domain15.example.com/BaseOS
enabled=1
gpgcheck=1
gpgkey=http://utility.domain15.example.com/RPM-GPG-KEY-redhat-release
[AppStream]
name=AppStream
baseurl=http://utility.domain15.example.com/AppStream
enabled=1
gpgcheck=1
gpgkey=http://utility.domain15.example.com/RPM-GPG-KEY-redhat-release
[root@node1 ~]# yum clean all
[root@node1 ~]# yum repolist
repo id repo name
AppStream AppStream
BaseOS BaseOS
[root@node1 ~]# yum list all
QUESTION NO: 2
Part 1 (on Node1 Server)
Task 10 [Configuring NTP/Time Synchronization]
Configure your system so that it is an NTP client of utility.domain15.example.com The
system time should be set to your (or nearest to you) timezone and ensure NTP sync is
configured
Answer:
* [root@node1 ~]# yum install chrony
[root@node1 ~]# vim /etc/chrony.conf
pool utility.domain15.example.com iburst
[root@node1 ~]# systemctl enable chronyd
[root@node1 ~]# systemctl restart chronyd
[root@node1 ~]# systemctl status chronyd
[root@node1 ~]# tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent, ocean, "coord", or "TZ".
1) Africa
2) Americas
3) Antarctica
4) Asia
11) TZ - I want to specify the time zone using the Posix TZ format.
#? 4
* Please select a country whose clocks agree with yours.
1) Afghanistan 18) Israel 35) Palestine
2) Armenia 19) Japan 36) Philippines
3) Azerbaijan 20) Jordan 37) Qatar
4) Bahrain 21) Kazakhstan 38) Russia
5) Bangladesh 22) Korea (North) 39) Saudi Arabia
#? 5
The following information has been given:
Bangladesh
Therefore TZ='Asia/Dhaka' will be used.
Is the above information OK?
1) Yes
2) No
#? 1
Asia/Dhaka
[root@node1 ~]# chronyc sources -v
^? utility.domain15.example> 0 7 0 - +0ns[ +0ns] +/- 0ns
QUESTION NO: 3
SELinux must be running in the Enforcing mode.
Answer:
getenforce // Check the current mode of SELinux // SELinux runs in enforcing mode // Check
getenforce 1 getenforce vim /etc/selinux/config selinux=enforcing // To temporarily enable
SELinux wg sestatus
QUESTION NO: 4
The system ldap.example.com provides an LDAP authentication service.
Your system should bind to this service as follows:
The base DN for the authentication service is dc=domain11, dc=example, dc=com LDAP is
used to provide both account information and authentication information. The connection
should be encrypted using the certificate at
http://host.domain11.example.com/pub/domain11.crt When properly configured, ldapuserX
should be able to log into your system, but will not have a home directory until you have
completed the autofs requirement. Username: ldapuser11 Password: password
Answer:
system-config-authentication LDAP user DN=dc=domain11,dc=example,dc=com Server=
host.domain11.example.com Certificate=
http://host.domain11.example.com/pub/domain11.crt (enter url carefully, there maybe // or ..)
LDAP password OK starting sssd su -ldapuser11 Display Bash prompt #exit
QUESTION NO: 5
Create the user named eric and deny to interactive login.
Answer:
useradd eric
passwd eric
vi /etc/passwd
eric:x:505:505::/home/eric:/sbin/nologin
Which shell or program should start at login time is specified in /etc/passwd file? By default,
Redhat Enterprise Linux assigns the /bin/bash shell to the users. To deny the interactive
login, you should write /sbin/nologin or /bin/ false instead of login shell.
QUESTION NO: 6
Find all lines in the file /usr/share/dict/words that contain the string seismic. Put a copy of all
these lines in their original order in the file /root/wordlist. /root/wordlist should contain no
empty lines and all lines must be exact copies of the original lines in /usr/share/dict/words.
Answer:
grep seismic /usr/share/dict/words> /root/wordlist
QUESTION NO: 7
Part 1 (on Node1 Server)
Task 14 [Managing SELinux Security]
You will configure a web server running on your system serving content using a non-standard
port (82)
Answer:
* [root@node1 ~]# curl http://node1.domain15.example.com
curl: (7) Failed to connect to node1.domain15.example.com port 80: Connection refused
[root@node1 ~]# yum install httpd
[root@node1 ~]# systemctl enable --now httpd
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service →
/usr/lib/systemd/system/httpd.service.
[root@node1 ~]# systemctl start httpd
[root@node1 ~]# systemctl status httpd
Status: "Running, listening on: port 80"
* [root@node1 ~]# wget http://node1.domain15.example.com
2021-03-23 13:27:28 ERROR 403: Forbidden.
[root@node1 ~]# semanage port -l | grep http
http_port_t tcp 80, 81, 443, 488, 8008, 8009, 8443, 9000
[root@node1 ~]# semanage port -a -t http_port_t -p tcp 82
[root@node1 ~]# semanage port -l | grep http
http_port_t tcp 82, 80, 81, 443, 488, 8008, 8009, 8443, 9000
[root@node1 ~]# firewall-cmd --zone=public --list-all
[root@node1 ~]# firewall-cmd --permanent --zone=public --add-port=82/tcp
[root@node1 ~]# firewall-cmd --reload
[root@node1 ~]# curl http://node1.domain15.example.com
OK
QUESTION NO: 8
Create a 512M partition, make it as ext4 file system, mounted automatically under /mnt/data
and which take effect automatically at boot-start.
Answer:
# fdisk /dev/vda
n
+512M
w
# partprobe /dev/vda
# mkfs -t ext4 /dev/vda5
# mkdir -p /data
# vim /etc/fstab
/dev/vda5 /data ext4 defaults 0 0
# mount -a
QUESTION NO: 9
Locate all the files owned by ira and copy them to the / root/findresults directory.
Answer:
# find / -user ira > /root/findresults (if /root/findfiles is a file)
# mkdir -p /root/findresults
# find / -user ira -exec cp -a {} /root/findresults\; [ if /root/findfiles is a directory] ls
/root/findresults
QUESTION NO: 10
Part 2 (on Node2 Server)
Task 1 [Controlling the Boot Process]
Interrupt the boot process and reset the root password. Change it to kexdrams to gain access
to the system
Answer:
* 1. Reboot the server pressing by Ctrl+Alt+Del
2. When the boot-loader menu appears, press the cursor keys to highlight the default boot-
loader entry
3. Press e to edit the current entry.
4. Use the cursor keys to navigate to the line that starts with linux.
5. Press End to move the cursor to the end of the line.
QUESTION NO: 11
Create a volume group, and set 8M as a extends. Divided a volume group containing 50
extends on volume group lv (lvshare), make it as ext4 file system, and mounted automatically
under /mnt/dat a. And the size of the floating range should set between 380M and 400M.
Answer:
# fdisk
# partprobe
# pvcreate /dev/vda6
# vgcreate -s 8M vg1 /dev/vda6 -s
# lvcreate -n lvshare -l 50 vg1 -l
# mkfs.ext4 /dev/vg1/lvshare
# mkdir -p /mnt/data
# vim /etc/fstab
/dev/vg1/lvshare /mnt/data ext4 defaults 0 0
# mount -a
# df -h
QUESTION NO: 12
Part 1 (on Node1 Server)
Task 8 [Managing Local Users and Groups]
Create a user fred with a user ID 3945. Give the password as iamredhatman
Answer:
* [root@node1 ~]# useradd -u 3945 fred
[root@node1 ~]# echo "iamredhatman" | passwd --stdin fred
Changing password for user fred.
passwd: all authentication tokens updated successfully