Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Log in to the Linux virtual machine, and complete the following tasks through the Bash shell. Note: All screenshots you capture must show the VMware
Log in to the Linux virtual machine, and complete the following tasks through the Bash shell.
Note: All screenshots you capture must show the VMware Workstation tabs
Change and list directories.
a Change the directory to the etc directory. marks
b Display your current working directory. marks
c How do you go to the root directory? marks
d List the contents of the root directory. marks
e How do you list a long listing of the root directory? marks
Manage files and directories.
a Create a directory called "testyourfirstname" eg testjohn in your home directory. marks
b Remove the directory created in previous step. marks
c Create a directory called "demoyourfirstname eg demojohn in your home directory. marks
d Create the following files in the directory created in the previous step: filetxt and filetxt marks
e Rename filetxt to "yourfirstname" eg john marks
f Create a directory called "yourfirstnamebackup" eg johnbackup and copy into it all the files from the "demoyourfirstname" directory created in previous step. marks
g Use one command to remove the directory "yourfirstnamebackup" and all files in it marks
h Create the following two files and add some text in them: march.txt and may.txt marks
Make links between files.
a Create a hard link to march.txt called "hlmarch.txt and verify the link count for the original and the new linked file. The link count should be for both files. marks
b Create a symbolic link to may.txt called "slmay.txt and verify it marks
Create users and groups.
a Create the following users with username lowercase as their last name, password "secret" and their full name in the comment. marks
i Cody Bowman
ii Eric Hunter
iii. Michael Smith
b Verify the users created in the previous step, and add a file called "yourfirstname.txt in their home directory. marks
c Change the password policy of any of the above user accounts to require a new password every days. marks
d Create the following groups: admin, accounts and manager. marks
e Make smith, brown and hunter members of the following groups: admin, accounts and manager. marks
Set file permissions.
a Log in as normal user, and create a directory called test Create a file called "yourfirstname.txt which is owned by you in the directory. marks
b Copy a file owned by root from etc to your test directory. Who owns this copy of the file? marks
c Switch to root user, and create a file called "rootuserfile" in the user's test directory. marks
d As normal user, find out who owns this file called "rootuserfile" created by root. marks
e Change the ownership of all files in the test directory to yourself. You must have all rights to these files and assign others readonly access. marks
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