Question: LINUX please (ubuntu) 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 (ubuntu)

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.

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.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!