Question
Assignment We need the following information from two files, /etc/passwd and /var/log/boot.log saved in a file called /tmp/system.info.2 Who is the owner? in the format:
Assignment
-
We need the following information from two files, /etc/passwd and /var/log/boot.log saved in a file called /tmp/system.info.2
-
Who is the owner? in the format:
OWNER:
: -
Permissions of the files in an octal mode in the format:
PERMISSIONS:
: -
Date and time of the creation of the file in the format:
DATE:
: -
The inode number in the format:
INODE:
:
-
Create the following folder structure in your system under /opt:
opt system1/ bin/ logs/ system2/ flags/ system3/
-
Make sure all the system<1-3> folders are owned by the root user
-
Make sure the rest of the folders are owned by your personal account
-
Create a file named system1.info in the directory /opt/system1/logs/and make sure the permissions are set as follows:
-
the owner can read, write and execute
-
the group can read and write
-
others can only read.
-
-
Create a soft link called system1_link under the directory /root that points to the file created in the previous task.
-
Finally, create an archive of the entire structure and compress it saving it in the /home directory with the name `my_backup.tar.gz`
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started