Root Password and Log Into The System

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

1) You do not know the root password but You have physical access to the machine.

Create new
root password and log into the system.

2) Please create new network connection using provided values:


IP: some.ip.to.be.used/mask
Gateway: some.gateway.to.be.used
DNS server: some.dns.to.be.used
Interface: eth0

3) Change hostname of the system

4) Enable SELinux in enforcing mode

5) Install Apache and allow it to get documents from NFS mounted folder (SELinux part)

6) Extend the existing xfs file system to a total size of 200MB and add a label called myFS.

7) Assign the same SELinux contexts used by the home directories to the /xfs directory
permanently.

8) Create two users: john with uid/gid equal to 2000, password 12345678
and davis with uid/gid equal to 3000, password 87654321. Make davis' account validity
stopping in one month.

9) Allow davis (and only davis) to get full access to john's home directory.

10) Create a directory named /common. Allow john and davis to share documents in
the /common directory using a group called team. Both of them can read, write and
remove documents from the other in this directory but any user not member of the
group can’t.
11) Create a xfs file system on a new logical volume of 100MB called lv_xfs. Mount it
permanently with uuid under /xfs.

12) Update kernel setting default console.

13) Create a logical volume of 200MB called lv_swap2 and add it permanently to the current
swap space.

14) Create a cron job running as root, starting at 11PM every day and writing a report on daily
system resource consumption in the /var/log/consumption.log file.

15) Set the default target to boot into X Window level Graphical Target.

16) Add additional repository for YUM with name my_custom_repo which can be found via
URL http://local.repo/rhel7

17) Create new physical partition with 100MB size and mount it under /meet

18) Install the kernel from the source http://some.link/to/kernel. The following criteria
must be met:

• installed kernel will be the default one when system boots


• previous kernel is still available

19) Create users and assign them to secondary groups

Question:

• Create group sysgrp


• Create user andrew and susan who belong to this group (as secondary group)
• Create user sarah who does not have an access to the shell
• Password for all the users should be Postroll
20) Create a collaborative directory /redhat/sysgrp with following properties:

• group ownership of the folder is for group sysgrp


• members of sysgrp should have full access to this folder but no other user
• files created in this folder have by default group access to sysgrp

21) Bind with LDAP located on ldap.server.com

• LDAP dn is dc=server,dc=com
• certificate file is located on http://ldap.server.com/pub/EXAMPLE-CA-CERT
• ldapuserX should be able to log into your system, where X is server domain
number but will have none home directory (configured in different question)
• all LDAP users have password password

22) Configure autofs to automount the home directories of LDAP users.

• classroom.example.com (172.25.254.254) NFS-exports /home/guests to your


system, whereX is Your server number
• LDAP userX home directory
is classroom.example.com:/home/guests/ldapuserX
• ldapuserX home directory should be automounted locally
beneath /home as /home/guests/ldapuserX
• home directories must be writable by their users
• while You are able to login as any of the users ldapuser1-20 the only home
directory You are able to access is ldapuserX

23) Configure Your system that it is NTP client of classroom.example.com

24) Copy the file /etc/fstab to /var/tmp. The file copied should be owned by root, the group
also should be set to root and should not be executable by anyone. The user andrew should
have read&write access to this file. User susan should not have any rights to this file. All other
users (current or future) should have the ability to read this file.
25) Create a new physical volume with volume group in the name of datacontainer, the extent
of VG should be 16MB. Also create new logical volume with name datacopy with the size of 50
extents and filesystem vfat mounted under /datasource.

26) Reduce the size of existing logical volume by 400MB.

27) Create the archive file /root/local.tgz for /usr/local compressed by gzip.

28) Search the string sarah in the /etc/passwd file and save the output in /root/lines

29) Configure journald to persist between reboots

30) Apply VDO (Virtual Data Optimizer) to the block device.

32) Find All Files in /etc (not subdirectories) that where modified more than 180 days
ago.

32) Find All Files in /etc (not subdirectories) that contain text "chrony" (ignore case).

34) Create pool and filesystem for thin provisioning and snapshots.

35) Login to the registry. Download image for a webserver. Run web server in a container as a
user-service on port 8080, sharing files from /home/user/webfiles

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