Master 2021 Latest The Questions RHCSA and Pass EX200 Real Exam! [Q59-Q74]

Share

Master 2021 Latest The Questions RHCSA and Pass EX200  Real Exam!

Penetration testers simulate EX200 exam PDF

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

Answer:

Explanation:
see explanation below.
Explanation
* chmod 770 /archive
* Verify using : ls -ld /archive Preview should be like:
drwxrwx--- 2 root sysuser 4096 Mar 16 18:08 /archive
To change the permission on directory we use the chmod command. According to the question that only the owner user (root) and group member (sysuser) can fully access the directory so: chmod 770 /archive

 

NEW QUESTION 60
SIMULATION
Resize the logical volume vo and its filesystem to 290 MB. Make sure that the filesystem contents remain intact.
Note: Partitions are seldom exactly the same size requested, so a size within the range of 260 MB to 320 MiB is acceptable.

Answer:

Explanation:
See explanation below.
Explanation/Reference:
Explanation:
df -hT
lvextend -L +100M /dev/vg0/vo
lvscan
xfs_growfs /home/ // home is LVM mounted directory
Note: This step is only need to do in our practice environment, you do not need to do in the real exam resize2fs /dev/vg0/vo // Use this comand to update in the real exam df -hT OR e2fsck -f/dev/vg0/vo umount /home resize2fs /dev/vg0/vo required partition capacity such as 100M lvreduce -l 100M /dev/vg0/vo mount /dev/ vg0/vo /home df -Ht

 

NEW QUESTION 61
CORRECT TEXT
Configure a task: plan to run echo "file" command at 14:23 every day.

Answer:

Explanation:
(a) Created as administrator
# crontab -u natasha -e
23 14 * * * /bin/echo "file"
(b)Created as natasha
# su - natasha
$ crontab -e
23 14 * * * /bin/echo "file"

 

NEW QUESTION 62
SIMULATION
Create a backup
Create a backup file named /root/backup.tar.bz2, contains the content of /usr/local, tar must use bzip2 to compress.

Answer:

Explanation:
See explanation below.
Explanation/Reference:
Explanation:
cd /usr/local
tar -jcvf /root/backup.tar.bz2
mkdir /test
tar -jxvf /root/backup.tar.bz2 -C /test// Decompression to check the content is the same as the /usr/loca after If the questions require to use gzip to compress. change -j to -z.

 

NEW QUESTION 63
Create a logical volume
Create a new logical volume as required:
Name the logical volume as database, belongs to datastore of the volume group, size is 50 PE.
Expansion size of each volume in volume group datastore is 16MB.
Use ext3 to format this new logical volume, this logical volume should automatically mount to /mnt/database

Answer:

Explanation:
see explanation below.
Explanation
fdisk -cu /dev/vda// Create a 1G partition, modified when needed
partx -a /dev/vda
pvcreate /dev/vdax
vgcreate datastore /dev/vdax -s 16M
lvcreate- l 50 -n database datastore
mkfs.ext3 /dev/datastore/database
mkdir /mnt/database
mount /dev/datastore/database /mnt/database/ df -Th
vi /etc/fstab
/dev/datastore /database /mnt/database/ ext3 defaults 0 0 mount -a
Restart and check all the questions requirements.

 

NEW QUESTION 64
Create a swap space, set the size is 600 MB, and make it be mounted automatically after rebooting the system (permanent mount).

Answer:

Explanation:
see explanation below.
Explanation
* if=/dev/zero of=/swapfile bs=1M count=600 mkswap /swapfile
/etc/fstab:
/swapfile swap swap defaults 0 0 mount -a

 

NEW QUESTION 65
CORRECT TEXT
Find the rows that contain abcde from file /etc/testfile, and write it to the file/tmp/testfile, and the sequence is requested as the same as /etc/testfile.

Answer:

Explanation:
# cat /etc/testfile | while read line;
do
echo $line | grep abcde | tee -a /tmp/testfile
done
OR
grep `abcde' /etc/testfile > /tmp/testfile

 

NEW QUESTION 66
SIMULATION
Configure your NFS services. Share the directory by the NFS Shared services.

Answer:

Explanation:
See explanation below.
Explanation/Reference:
Explanation: /etc/init.d/rpcbind start
/etc/init.d/nfslock start
/etc/init.d/nfs start
chkconfig rpcbind on
chkconfig nfslock on
chkconfig nfs on
showmount -e localhost

 

NEW QUESTION 67
According the following requirements, configure autofs service and automatically mount to user's home directory in the ldap domain.
- Instructor.example.com (192.168.0.254) has shared /home/guests/ldapuserX home directory to your system by over NFS export, X is your hostname number.
- LdapuserX's home directory is exist in the instructor.example.com: /home/ guests/ldapuserX
- LdapuserX's home directory must be able to automatically mount to /home/ guests/ldapuserX in your system.
- Home directory have write permissions for the corresponding user.
However, you can log on to the ldapuser1 - ldapuser99 users after verification. But you can only get your corresponding ldapuser users. If your system's hostname is server1.example.com, you can only get ldapuser1's home directory.

Answer:

Explanation:
see explanation below.
Explanation
mkdir -p /home/guests
cat /etc/auto.master:
/home/guests /etc/auto.ldap
cat /etc/auto.ldap:
ldapuser1 -rw instructor.example.com:/home/guests/ldapuser1
* automatically mount all the user's home directory #* -rw instructor.example.com:/home/guests/&

 

NEW QUESTION 68
SIMULATION
Create a logical volume
Create a new logical volume as required:
Name the logical volume as database, belongs to datastore of the volume group, size is 50 PE.
Expansion size of each volume in volume group datastore is 16MB.
Use ext3 to format this new logical volume, this logical volume should automatically mount to /mnt/ database

Answer:

Explanation:
See explanation below.
Explanation/Reference:
Explanation: fdisk -cu /dev/vda// Create a 1G partition, modified when needed partx -a /dev/vda pvcreate /dev/vdax vgcreate datastore /dev/vdax -s 16M lvcreate- l 50 -n database datastore mkfs.ext3 /dev/datastore/database mkdir /mnt/database mount /dev/datastore/database /mnt/database/ df -Th vi /etc/fstab
/dev/datastore /database /mnt/database/ ext3 defaults 0 0 mount -a
Restart and check all the questions requirements.

 

NEW QUESTION 69
Create a new logical volume according to the following requirements:
The logical volume is named database and belongs to the datastore volume group and has a size of 50 extents.
Logical volumes in the datastore volume group should have an extent size of 16 MB.
Format the new logical volume with a ext3 filesystem.
The logical volume should be automatically mounted under /mnt/database at system boot time.

Answer:

Explanation:
see explanation below.
Explanation
fdisk -cu /dev/vda
partx -a /dev/vda
pvcreate /dev/vdax
vgcreate datastore /dev/vdax -s 16M
lvcreate-l 50 -n database datastore
mkfs.ext3 /dev/datastore/database
mkdir /mnt/database
mount /dev/datastore/database /mnt/database/ df -Th
vi /etc/fstab
/dev/datastore /database /mnt/database/ ext3 defaults 0 0 mount -a

 

NEW QUESTION 70
SIMULATION
Search a String
Find out all the columns that contains the string seismic within /usr/share/dict/words, then copy all these columns to /root/lines.tx in original order, there is no blank line, all columns must be the accurate copy of the original columns.

Answer:

Explanation:
See explanation below.
Explanation/Reference:
Explanation: grep seismic /usr/share/dict/words > /root/lines.txt

 

NEW QUESTION 71
A recently installed application writes log data to /opt/app/log/info.log. If Filebeat is already installed and
set up for communication with a remote Logstash, what has to be done in order to submit the log data of the
new application to Logstash?

  • A. Add the log file to the pathoption within the logprospector in the Filebeat configuration and restart
    Filebeat.
  • B. Configure logrotate to execute filebeat -I /opt/app/log/info.log 0after each rotation of /opt/
    app/log/info.log.
  • C. Add an additional input channel with the option source => "/opt/app/log/info.log"to the
    Logstash configuration.
  • D. Replace /opt/app/log/info.logby a symbolic link to /dev/filebeatand restart the new application.
  • E. Add a new cron job that invokes filebeat -i /opt/app/log/info.logperiodically.

Answer: D

 

NEW QUESTION 72
SIMULATION
According the following requirements to create user, user group and the group members:
- A group named admin.
- A user named mary, and belong to admin as the secondary group.
- A user named alice, and belong to admin as the secondary group.
- A user named bobby, bobby's login shell should be non-interactive. Bobby not belong to admin as the secondary group.
Mary, Alice, bobby users must be set "password" as the user's password.

Answer:

Explanation:
See explanation below.
Explanation/Reference:
Explanation:
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

 

NEW QUESTION 73
Create the following users, groups, and group memberships:
A group named adminuser.
A user natasha who belongs to adminuser as a secondary group A user harry who also belongs to adminuser as a secondary group.
A user sarah who does not have access to an interactive shell on the system, and who is not a member of adminuser, natasha, harry, and sarah should all have the password of redhat.

Answer:

Explanation:
see explanation below.
Explanation
* groupadd sysmgrs
* useradd -G sysmgrs Natasha
* We can verify the newly created user by cat /etc/passwd)
# useradd -G sysmgrs harry
# useradd -s /sbin/nologin sarrh
# passwd Natasha
# passwd harry
# passwd sarrah

 

NEW QUESTION 74
......

Penetration testers simulate EX200 exam: https://www.pass4sures.top/RHCSA/EX200-testking-braindumps.html

Bestselling On-The-Job Reference Exam Questionshttps://drive.google.com/open?id=1mmpkV0Lrwv8k8fYGPA9poXqy8PsdZ36O