EX200 Exam - EX200 Red Hat Certified System Administrator (RHCSA) Exam

certleader.com

Q1. CORRECT TEXT 

Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2 without any permission. 

Answer: # cp /etc/fstab /var/tmp/ 

# chgrp admin /var/tmp/fstab 

# setfacl -m u:user1:rwx /var/tmp/fstab 

# setfacl -m u:user2:--- /var/tmp/fstab 

# ls -l 

-rw-rw-r--+ 1 root admin 685 Nov 10 15:29 /var/tmp/fstab 

Q2. CORRECT TEXT 

Find the files owned by harry, and copy it to catalog: /opt/dir 

Answer: # cd /opt/ 

# mkdir dir 

# find / -user harry -exec cp -rfp {} /opt/dir/ \; 

Q3. CORRECT TEXT 

Configure the verification mode of your host account and the password as LDAP. And it can ldapuser40. The password is set as "password". And the certificate login successfully through 

can be downloaded from http://ip/dir/ldap.crt. After the user logs on , the user has no host directory unless you configure the autofs in the following questions. 

Answer: system-config-authentication 

LDAP Server: ldap//instructor.example.com (In domain form, not write IP) 

OR 

# yum groupinstall directory-client (1.krb5-workstation 2.pam-krb5 3.sssd) 

# system-config-authentication 

:1.User Account Database: LDAP 

:2.LDAP Search Base DN: dc=example,dc=com 

:3.LDAP Server: ldap://instructor.example.com (In domain form, not write IP) 

:4.Download CA Certificate 

:5.Authentication Method: LDAP password 

:6.Apply 

getent passwd ldapuser40 

Q4. CORRECT TEXT 

Download ftp://192.168.0.254/pub/boot.iso to /root, and mounted automatically under /media/cdrom and which take effect automatically at boot-start. 

Answer: # cd /root; wget ftp://192.168.0.254/pub/boot.iso 

# mkdir -p /media/cdrom 

# vim /etc/fstab 

/root/boot.iso /media/cdrom iso9660 defaults,loop 0 0 

# mount -a 

mount [-t vfstype] [-o options] device dir 

Q5. CORRECT TEXT 

Upgrading the kernel as 2.6.36.7.1, and configure the system to Start the default kernel, keep the old kernel available. 

Answer: # cat /etc/grub.conf 

# cd /boot 

# lftp it 

# get dr/dom/kernel-xxxx.rpm 

# rpm -ivh kernel-xxxx.rpm 

# vim /etc/grub.conf 

default=0 

Q6. CORRECT TEXT 

Create a volume group, and set 16M as a extends. And divided a volume group containing 50 extends on volume group lv, make it as ext4 file system, and mounted automatically under /mnt/data. 

Answer: # pvcreate /dev/sda7 /dev/sda8 

# vgcreate -s 16M vg1 /dev/sda7 /dev/sda8 

# lvcreate -l 50 -n lvm02 

# mkfs.ext4 /dev/vg1/lvm02 

# blkid /dev/vg1/lv1 

# vim /etc/fstab 

# mkdir -p /mnt/data 

UUID=xxxxxxxx /mnt/data ext4 defaults 0 0 

# vim /etc/fstab 

# mount -a 

# mount 

(Verify) 

Q7. CORRECT TEXT 

Configure a task: plan to run echo hello command at 14:23 every day. 

Answer: # which echo 

# crontab -e 

23 14 * * * /bin/echo hello 

# crontab -l (Verify) 

Q8. CORRECT TEXT 

Download ftp://192.168.0.254/pub/boot.iso to /root, and mounted automatically under /media/cdrom and which take effect automatically at boot-start. 

Answer: # cd /root; wget ftp://192.168.0.254/pub/boot.iso 

# mkdir -p /media/cdrom 

# vim /etc/fstab 

/root/boot.iso /media/cdrom iso9660 defaults,loop 0 0 

# mount -a 

mount [-t vfstype] [-o options] device dir 

Q9. CORRECT TEXT 

Create a user named alex, and the user id should be 1234, and the password should be alex111. 

Answer: # useradd -u 1234 alex 

# passwd alex 

alex111 

alex111 

OR 

echo alex111|passwd -stdin alex 

Q10. CORRECT TEXT 

Find the files owned by harry, and copy it to catalog: /opt/dir 

Answer: # cd /opt/ 

# mkdir dir 

# find / -user harry -exec cp -rfp {} /opt/dir/ \;