
SIMULATION
Configure the ftp to allow anonymously download the directory /var/ftp/pub, and reject the domain t3gg.com to access.
A.
SIMULATION
Configure the samba server, share /common, which can be browsed. The user harry can only read it. If it is needed, the password for harry is harryuser.
A.
SIMULATION
There are Mail servers, Web Servers, DNS Servers and Log Server. Log Server is already configured. You should configure the mail server, web server and dns server to send the logs to log server.
A.
SIMULATION
There were two systems:
system1, main system on which most of the configuration take place
system2, some configuration here
Configure selinux.
Configure your systems that should be running in Enforcing.
A.
Create a playbook called web.yml as follows:
*
The playbook runs on managed nodes in the "dev" host group
*
Create the directory /webdev with the following requirements: --> membership in the apache group --> regular permissions: owner=r+w+execute, group=r+w+execute, other=r+execute s.p=set group-id
*
Symbolically link /var/www/html/webdev to /webdev
*
Create the file /webdev/index.html with a single line of text that reads: “Development” --> it should be available on http://servera.lab.example.com/webdev/index.html
A.
Answer: See the for complete Solution below.
Create Logical volumes with lvm.yml in all nodes according to following
requirements.
*
Create a new Logical volume named as 'data'
*
LV should be the member of 'research' Volume Group
*
LV size should be 1500M
*
It should be formatted with ext4 file-system.
--> If Volume Group does not exist then it should print the message "VG Not found"
--> If the VG can not accommodate 1500M size then it should print "LV Can not be
created with
following size", then the LV should be created with 800M of size.
--> Do not perform any mounting for this LV.
A. Answer: See the for complete Solution below.
Create a playbook called timesvnc.yml in /home/sandy/ansible using rhel system role timesync. Set the time to use currently configured nip with the server 0.uk.pool.ntp.org. Enable burst. Do this on all hosts.
A. Answer: See the for complete Solution below.
Create a jinja template in /home/sandy/ansible/ and name it hosts.j2. Edit this file so it looks like the one below. The order of the nodes doesn't matter. Then create a playbook in /home/sandy/ansible called hosts.yml and install the template on dev node at /root/myhosts

A. Answer: See the for complete Solution below.
Create a Shell script /root/program:
The shell script will come back to "user" parameter when you are entering "kernel" parameter. The shell script will come back to "kernel" when you are entering "user" parameter. It will output the standard error when this script "usage:/root/
program kernel|user" don't input any parameter or the parameter you inputted is entered as the requirements.
A. Answer: See the for complete Solution below.
You are working as an Administrator. There is a common data shared (/data) from 192.168.0.254 to all users in your local LAN. When user's system start, shared data should automatically mount on /common directory.
A. Answer: See the for complete Solution below.