Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task 1 1 0 points Create the users paul, sylvia, and patty. Change the password for paul. Show that the users have been created successfully
Task points
Create the users paul, sylvia, and patty. Change the password for paul.
Show that the users have been created successfully by outputting ONLY the users you have created to a file named userstxt and outputting the content of the file to the terminal screen. You may not type anything manually; you must only use commands.
Make sure that users sylvia and patty change their passwords at the first login
Create a user named vendor, set vendors permanent password, make sure vendor cannot change it Set vendor account to expire in days.
Set temporary lock on the vendor account.
Task points
Create the groups admin, manager, and user
Show that the groups have been created successfully by outputting only the groups you have created to a file named groupstxt and outputting the content of the file to the terminal screen. You may not type anything manually; you must only use commands.
Place paul in the admin group Place sylvia in the manager group Place patty and vendor in the
user group.
Append the groupstxt so it shows the groups with their users
Task points
From the student users home directory, create a directories called Admin and Backup
From the Admin directory create the Groups and Users directories
Move the groupstxt file to the Groups directory and the userstxt file to the
Users directory
Copy all of the files you just created into the Backup directory and name the copies groupsbak and usersbak
Task points
Make it so the file userstxt is owned by paul and admin
Make it so the file groupstxt is owned by sylvia and manager
Change the file permissions for userstxt so only paul can edit the file using only symbolic codes.
Explain, how would you use symbolic codes, what are they.
Create a file named onboarding.txt in the Admin directory and edit the file in an editor to say echo hello
Change the permissions in the file so onboarding.txt isexecutable, and all users can read and execute, but the owner have full set of permissions. The primary group doesnt need execute permissions. Use absolute octal method.
Explain, how you calculate values, and how you know what value to assign to the each party.
What does it mean that file is executable?
Insert your screenshot here.
Task points
Create links to the directories Groups and Users so they can be accessed from the Roots home directory. What type of the links did you use? Why? Explain what are benefits, and restrictions to use this type of links.
Create link to the file onboarding.txt so admin user can access it from the home directory. What type of the links did you use? Why? Explain what are benefits, and restrictions to use this type of links.
Verify that all links exist, and can be accessed.
Remove an original onboarding.txt file. What happened to the link? Explain.
Insert your screenshot here.
Task points
Using vim create a script that will be typing We wish you a Merry Christmas! until stopped. Name it xmas, and make the file executable
Using vim create a script that will be typing Santa Claus is coming to town! until stopped. Name it santa, and make the file executable
Using vim create a script that will be typing All I want for Christmas Is You! until stopped. Name it mariah, and make the file executable
Run these scripts in the background of the shell
Show jobs running for these processes
Display the processIDs of the xmassantamariah
Stop the xmas job
Restart the xmas job
Stop the santa job
Terminate mariah job
Show all currently running processes.
Explain why it is important to be able to view running processes and identify their PID
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