Write My Paper Button

WhatsApp Widget

PU Linux Commands and Reflection Questions

Share this post on:

PU Linux Commands and Reflection Questions – Description

Purpose

The purpose of this exercise is to review files and configurations associated with user accounts.

Preparation

Start your GCP instance and connect to it using the SSH link.

Assignment

Keep a Word document with the answers to the following questions.

Look at your users (15 points)

LOOK AT THE CONTENTS OF THE FILE /ETC/PASSWD. IN YOUR WORD DOCUMENT:

List the entire line with your account. What is your home directory? What is your user id? What is your group id? You are a non-system user. Are there any other non-system users? How can you tell?

Show the result of the groups command.

Since you have an account on your instance, you have an entry in /etc/passwd, and you also have an entry in /etc/shadow. View this file.
List the line for your account. What does the password field contain? What does this mean? Explain why this seems like a contradiction.

We’ll explore this topic in more detail in the next assignment.

What command did you have to issue before you could read the file /etc/shadow? What does this command let you do in general? Not all users on a system will be able to issue this command. From what you’ve seen so far in this lab, what gives you the permission to issue the command?

Look at your configuration files (10 points)

List all the files in your home directory, including the hidden ones. Show the command you used and the output.

Identify all the files that you have that are also described in the text, then compare the contents of the files you found with the contents of the files described in the text in Chapter 30. Briefly describe any additions or deletions.

Issue the alias command and show the results.
EDIT THE APPROPRIATE FILE TO UNCOMMENT ONE OF THE PREDEFINED ALIASES. SAVE THE FILE. REISSUE THE ALIAS COMMAND. YOU SHOULDN’T SEE YOUR NEW ALIAS. THIS IS BECAUSE THESE CONFIGURATION FILES ARE NORMALLY ONLY SOURCED ONCE WHEN YOU LOG IN OR CREATE A NEW SHELL. AFTER YOU MAKE A CHANGE, YOU CAN CERTAINLY LOG OUT AND IN AGAIN, THOUGH THIS IS OVERKILL. YOU JUST NEED TO ISSUE THE SOURCE COMMAND INSTEAD. NOW, ADD YOUR OWN ALIAS THAT WILL GET ESTABLISHED EVERY TIME YOU OPEN A NEW SHELL WINDOW.

Document in which file you added your alias, and show that it now works.

Utility program (7 points)
Write a Linux command or series of commands, or a python program that prints a count of the number of system user accounts listed in /etc/passwd. Show your code and its output.

Reflection

At the end of your Word document, include the answers to the following questions:

In a sentence or two, what did you learn?

In a sentence or two, what did you like about this project?

In a sentence or two, what did you find confusing or would like to see done differently regarding this project?

Turn In
FOR DOCUMENTATION, YOU SHOULD SUBMIT YOUR WORD DOCUMENT TO CANVAS.

Rubric

The post PU Linux Commands and Reflection Questions first appeared on .

Share this post on:

Affordable and Dependable Platform for Your Academic Assignments

X