0% found this document useful (0 votes)
91 views

Questions 1

This document provides instructions for configuring a system including: 1. Configuring the network settings, root password, SELinux, Yum, and NTP client. 2. Creating users and groups, an LVM logical volume for database storage, and copying a file with specific permissions. 3. Creating directories, updating the kernel, setting a cron job, and creating a user.

Uploaded by

Admin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views

Questions 1

This document provides instructions for configuring a system including: 1. Configuring the network settings, root password, SELinux, Yum, and NTP client. 2. Creating users and groups, an LVM logical volume for database storage, and copying a file with specific permissions. 3. Creating directories, updating the kernel, setting a cron job, and creating a user.

Uploaded by

Admin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

admin

admin.F5demo.com

https://udf.f5.com/courses

[email protected] Gbm123Gbm - Mohammed Naeem


[email protected] Gbm123Gbm - Tanseem AbdulKalam
[email protected] Gbm123Gbm - Sijo Jose

Configure the network as follows:


The IP address of your system should be : 172.25.X.10
Subnet Mask : 255.255.255.0
Name Server: 172.25.254.254
Gateway: 172.25.X.254
Note : X is your foundation number.

The password for the root user should be 'redhat123'.

All systems in the example.com DNS domain are in the 172.25.254.0/255.255.255.0


subnet, and all systems in that subnet are in example.com. Unless otherwise
specified, any network services you are asked to implement should be accessible to
systems in example.com.

The hostname of your machine should be desktopX.example.com where X is your


foundation number.

QUESTIONS

CONFIGURE SELINUX.
Configure the selinux mode of your system as enforcing.

CONFIGURE YUM.
Configure your machine such that you are able to download exam softwares from
http://content.example.com/rhel7.0/x86_64/dvd/

CONFIGURE NTP.
Configure your machine to be a NTP client of classroom.example.com

CREATE USERS.
Create the following users:
Create a group sysadmin.
Create a user alice who has sysadmin as a supplementary group.
Create a user harry who also has sysadmin as his supplementary group.
Create a user joy who does not have an interactive shell.

LVM CRREATION.
Create a logical volume with 20 extents where one extend having the size of 16MiB.
The logical volume has the name of database and volume group have the name of
datastore.
The logical volume should be mounted under the directory /mnt/database with a file
system of ext3 and should be automatically available on reboot.

COPY FILE.
Copy the file /etc/passwd to /var/tmp/passwd.
The file should belong to the user root and group root.
The user alice should be able to read and write on the file.
The user harry should neither read nor write on the file.
All other users should have read permission on the file.

CREATE DIRECTORY.
Create a directory /mnt/data.
The user alice and harry should be able to collaberatively work on this directory.
The files and directories created within this directory should automatically belong
to the group sysadmin.
All members of the group should have read and write access.
All other users should not have any permissions.
Note: By default, root user will have read and write access on all files and
directories.

UPDATE KERNEL.
Update your kernel from http://content.example.com/rhel7.0/x86_64/errata/

CRON JOB.
Alice must set a job to run at 14:05 every day and the job is /bin/echo hi

CREATE USER.
Create a user ipsr with used id 3345.

SWAP PARTITION.
Create a swap partition of 256M and should be automatically available on reboot.

LOCATE FILES.
Find all files owned by the user root and group mail, copy the output files to
/root/findings.

SEARCH WORDS.
Display the matches for the words which begin with "ns" in the
/usr/share/dict/words and save the output to a file /home/student/locate.txt.
AUTOFS.
The home directory of LDAP users are shared via NFS.
The classroom.example.com (172.25.254.254)shares home directory of ldapusers via
NFS.
Mount /home/guests/ldapuserX to your system, where x is your foundation number.
The ldapuserx's home directory is at classroom.example.com:/home/guests/ldapuserx.
The ldapuserx's home directory should be automounted locally beneath /home/guests.
The home directories must be writable by their users.

LVRESIZE.
Resize the logical volume 'm7_storage' to 900M which belongs to the volume group
'vgroup'.

BACKUP FILES.
Create an bzip2 archive /root/today_backup.tar.bz2 which stores the backup of
/etc .

ACCESS NETWORK USERS.


Bind your system to the LDAP server provided at classroom.example.com
The base DN is dc=example,dc=com.
You can download the TLS certificate from http://classroom.example.com/pub/example-
ca.crt
Use LDAP password for authentication and obtaining user information.
Log in as ldapuserX, (where X is your foundation number) with password 'password'.

You might also like