100% found this document useful (1 vote)
341 views3 pages

Scripts Rhcsa

The document provides instructions to configure a network including IP address, subnet mask, nameserver, and gateway. It also provides directions on tasks like configuring SELinux, Yum, NTP, creating users and groups, logical volume management, file permissions, kernel updates, cron jobs, partitions, locating and copying files. The final sections cover backing up files, binding to an LDAP server, and auto-mounting home directories from an NFS share.

Uploaded by

Deshfoss Deepak
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
100% found this document useful (1 vote)
341 views3 pages

Scripts Rhcsa

The document provides instructions to configure a network including IP address, subnet mask, nameserver, and gateway. It also provides directions on tasks like configuring SELinux, Yum, NTP, creating users and groups, logical volume management, file permissions, kernel updates, cron jobs, partitions, locating and copying files. The final sections cover backing up files, binding to an LDAP server, and auto-mounting home directories from an NFS share.

Uploaded by

Deshfoss Deepak
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

INSTRUCTIONS

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.254/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

1.CONFIGURE SELINUX.

Configure the selinux mode of your system as enforcing.

2.CONFIGURE YUM.

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

3.CONFIGURE NTP.

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

4.CREATE USERS.

Create a group sysadmin.


Create a user bownie who has developers as a supplementary group.
Create a user hari who also has developers as his supplementary group.
Create a user achu who does not have an interactive shell nor does belong to the
group developers.

5.LVM CRREATION.

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

6.COPY FILE.

Copy the file /etc/passwd to /var/tmp/passwd.


The file should belong to the user root and group root.
The user brownie should be able to read and write on the file.
The user achu should neither read nor write on the file.
All other users should have read permission on the file.

7.CREATE DIRECTORY.

Create a directory /mnt/data.


The user brownie and hari should be able to collaboratively work on this directory.
The files and directories created within this directory should automatically belong
to the group developers.
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.

8.UPDATE KERNEL.

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

9.CRON JOB.

Hari must set a job to run at 14:5 every day and the job is /bin/echo hi.

10.CREATE USER.

Create a user Tom with user id 5001.

11.SWAP PARTITION.

Create a swap partition of 250M on your system.

12.LOCATE FILES.

Find all files owned by the user larry and copy to /root/found directory.

13.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.

14.Resize the logical volume


Resize the logical volume 'my_lv' to 160M which belongs to the volume group
'my_vg'.
Any size between 150M to 170M is permissible.

15.BACKUP FILES.

Create an archive /root/mybackup.tar.bz2 which stores the backup of /etc.

16.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'.

17.AUTOFS.

The home directory of LDAP users is 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 auto mounted locally beneath /home/guests.
The home directories must be writable by their users.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy