Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am trying to figure out how to do this lab in linux. I am tasked with using the chmod command, and the second picture

image text in transcribed

image text in transcribed

I am trying to figure out how to do this lab in linux. I am tasked with using the chmod command, and the second picture is what the output should look like.

Run 'su' to become the root user. The password is "Careful!" Run 'clear' For the next steps, review the slides to find the commands to run. Run the help commands or search the Internet to find the correct options to use. They restore the system to a fresh state in preparation for the lab Run the command to remove user testuser and its home directory if it already exists Run the command to add user testuser Run the command to set its password to testuser Run the command to remove /tmp/chmod_lab' in case the directory exists Run 'exit' to return to user labuser Run 'id' to verify that you are user labuser with uid=500 Run the command to create directory /tmp/chmod_lab Run 'nano /tmp/chmod_lab/hello_world.sh' to create a shell script with the following contents. Or use whatever editor you prefer. 0 #!/bin/bash echo hello world Run 'cat /tmp/chmod lab/hello world.sh' to The purpose of this lab is to show how access to a file is controlled by its file permissons. Run 'clear' Run 'id' to show that your are user labuser Run 'ls - /tmp/chmod_lab/hello_world.sh'. It should show [labuser@ SEC-335-VM ~]$ ls -l /tmp/chmod_lab/hello_world.sh -rw-rw-r--, i labuser labuser 30 Feb 15 17:12 /tmp/chmod_lab/hello_world.sh [labuser@SEC-335-VM - $

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

How will the members be held accountable?

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago