Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LINUX please. Part_1: Log in and examine the /etc/passwd, /etc/shadow , and /etc/group files with less . (Youll need root privileges to examine /etc/shadow.) Locate

LINUX please.

Part_1:

Log in and examine the /etc/passwd, /etc/shadow, and /etc/group files with less. (Youll need root privileges to examine /etc/shadow.) Locate your own entries in the first two files, and any references to yourself in /etc/group. Note the hashed nature of your password in /etc/shadowyou cant tell what it is, even though you know your own password. (this is imperfect protection against those who gain illegitimate access to /etc/shadow.)

After examining these files, use the whoami, id, who, and w commands to confirm your own account and determine who else is using your computer. The id output, in particular, should show you to be a member of all the groups with which your username was associated in /etc/group.

Part_2:

Log into your computer and acquire root privileges. Keeping in mind the extra precautions you need when performing tasks as root, perform the following account maintenance tasks:

1. Create a new ordinary user account using useradd.

2. Set the password for this new account by using passwd.

3. Using a virtual terminal, log into the new account in text mode to verify that it works. Be sure the account has its own home directory.

4. Log out of the new account and switch back to your original session.

5. Use usermod to make the following changes to the account youve just created:

Add the user to a students group

Change the accounts username to something else.

Change the users login shell to /bin/false.

6. Attempt to log into the changed account. What happens?

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

More Books

Students also viewed these Databases questions