You are on page 1of 3

RHCSA Exam

Exam Times: Two hours.


Pass Scores: 70%
Total 300 points. Pass at 210 points.

Note:
1. All the software package is stored at ftp://ipa.mydomain.com/pub/centos7
2. SELINUX should be in enforcing mode.

1. Set the root password to digitribe

2. Configure your Host Name, IP Address, Gateway and DNS.


Host name: systemXXX.mydomain.com
IP Address:192.168.100.XXX/24
Gateway192.168.100.100
DNS:192.168.100.100

3. Resize LVM /data to 4GB

4. Create LVM data2 using 60 PE. Format it with EXT4 FS and mount it
permanently with uuid under /data2

5. Create three users: user1 with uid/gid 2000, password digitribe and user2 with
uid/gid 3000, password digitribe and user3 with nologin shell.
user1 and user2 should be member of group rhce.
Make user1 account validity stopping one month.
user2 minimum password age 2 days, maximum password age 60 days and set
warning to 5 days. Allow user1 to get full access to user2 home directory.

6. Create a directory named /digitribe. Allow user1 and user2 to share documents in
the /digitribe directory using a group called rhce. Both of them can read, write and
remove documents from /digitribe directory, but any user not member of the
group rhce unable to read, write and remove from /digitribe directory.

7. Create a logical volume of 300MB called lv_swap2 and add it permanently to the
current swap space.

8. Resize LVM data2 to 600M

9. Create a cron job running as user2, starting at 10PM every day and echo Hello.
Deny user1 from creating cron job.

10. Create a new user “user5”. Give user5, not in the rhce team, but this user can read
and write access to /digitribe.

11. Create a new LVM data3. The VG should have extents of size 8MB. The LV
should have 50 extents. Format it with XFS filesystem and mount it permanently
under /data3.

12. Search for text 'digitribe' in the file /usr/share/dict/words and copy to a file
/root/mysearch. The new file should not have blanks spaces and order should be
same as in the original file.

13. Locate all file owned by user1 and copy them to /root/user1files. Locate all file
that have sticky bit on to them and copy them to /root/sticky

14. Join your system to mydomain.com domain. LDAP server name is


ipa.mydomain.com

15. Configure autofs to make sure after login of user ldapuser1 from LDAP server it
has the home directory shared as /home/ldapuser1 from the ipa.mydomain.com
shared as NFS and it also requires that, other ldap users can use the home
directory normally .

16. Configure your system to sync clock from ipa.mydomain.com only.

17. Download iso from ftp://ipa.mydomain.com/pub/boot.iso and mount boot.iso


permanently to /MyISO.

18. Set the system to boot into multi user target

19. Create a directory "'/home/managers" with the following characteristics.


Group owner "manager" group
The directory should be have full permission for all members of "manager" group
accept root.
Files created under home/manager should get the same group owner.

20.Install a FTP server, and request to anonymous download from /var/ftp/pub


catalog.

21. Configure a HTTP server, which can be accessed through


http://systemXXX.mydomain.com. Please download the released page from
ftp://ipa.mydomain.com/pub/index.html

22. Upgrading the kernel, and configure the system to Start the default kernel, keep
theold kernel available.

You might also like