Question

- Do this lab using kali machine 1) Add an admin level user in the system 2) Show which users are...

- Do this lab using kali machine

1) Add an admin level user in the system

2) Show which users are logged into a system.

3) Check the listening network ports on your system.   

4) Install and setup Secure Shell service on your system, and test it.   

5) Check Password Expiration of User.   

6) Keep /boot as read-only.

7) Display all the users present in the system.

8) Print on screen the linux file that contains the passwords for all users.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. Add an admin level user in the system

  • Login as root
  • Open terminal and type the below command to create a new user:
  • "useradd -m username".
  • Click on enter(return).
  • Once a user has been created, a new password should also been provided.
  • To create a new passport, type in the command: "passwd" followed by the username.
  • Enter the new password in the prompt.
  • Retype the same password.
  • To make the account as administrator account who can have access to other accounts, type the command " usermod -a -G sudo username"
  • Then type in the command chsh -s /bin/bash username to make this change.

2. Show which users are logged into a system.

"w" is the command to print the names of all the logged-on users. However, "whoami" is the command used to print the list of effective user-id who are currently logged in.
3. Check the listening network ports on your system.

"sudo netstat -ltup " command prints all the listening sockets on the system.
In this command, -l prints all listening sockets.
-t prints all the TCP connections.
-u prints all the UDP connections.
-p is used to prints the application name listening on the port.
4. Install and setup Secure Shell service on your system, and test it.

To install SSH (secure shell) please follow the below steps:
Open terminal and type in the command:
"apt -get update"
Followed by the command:
" apt -get install ssh"

To set up the secure shell type the command:
"systemctl enable ssh".
This command enables SSH to start after it has been rebooted.

To test start SSH for a current session type the command:
"service SSH start".

5. Check Password Expiration of User

"chage -l username" commands displays the password details such as the created date and expiry date on most of the Linux system

Note: please remove all the double quotes before entering the commands.

Thankyou

Add a comment
Know the answer?
Add Answer to:
- Do this lab using kali machine 1) Add an admin level user in the system 2) Show which users are...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Lab: User login system (python) Create a user login system. Your code should do the following:...

    Lab: User login system (python) Create a user login system. Your code should do the following: 1.Load your user database from “UD.txt” (USE THE EXACT FILE NAME, file is given in the folder) 2.Display “Login or create a new user? Select L to login, select C to create new user.” 3. If wrong selection is entered, take the user back to step 2. 4. If the user entered “L”, display “Please enter your user name and hit enter” 5. Check...

  • Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following...

    Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following tasks based on the Linux Fundamentals lecture. For this lab, take screenshots for all major steps completed to illustrate that each task was successfully completed the same method as would be used for other labs). Tasks: 1. Create a new user named Billy Bob using the command linter face 2. Add Billy Bob to the sudoers group 3. Update and upgrade your Linux distribution...

  • computer networks help please !!! could someone help with the following tasks! ANY HELP WILL BE...

    computer networks help please !!! could someone help with the following tasks! ANY HELP WILL BE IMMENSELY APPRECIATED! THANKS. Task 1 In the following scenario, we would like to find out more information about a host that is on out network. Given an IP address we would like to search for additional information, we can start with obtaining the IP address off the default route. When running on a Linux VM, this like most likely to be the internal IP...

  • # No plagiarism #Decide on the type of motherboard to use in the computer system you...

    # No plagiarism #Decide on the type of motherboard to use in the computer system you are designing. Explain what it is and why you chose it. This from Lab 5.1 Using the information you recorded previously in Step 5, consult Table 5-1 to find out how to enter your system’s setup utility. (Alternatively, when you first turn on your PC, look for a message on your screen, which might read something like “Press F2 to access setup.” Table 5-1:...

  • 1. Objective This challenge lab will enable you to apply, in a practical scenario, the topics...

    1. Objective This challenge lab will enable you to apply, in a practical scenario, the topics we have introduced in the class so far: input/output including files, variables, conditionals and loops. 2. Learning outcomes After completing this assignment, you will be able to: • Analyze problems and express a solution algorithm using pseudocode. • Implement a pseudocode algorithm in a high-level language, including the correct use of arithmetic and logical expression and simple input/output operations. • Use the syntax and...

  • InventoryManagement

    Problem:A small electronics company has hired you to write an application to manage their inventory. The company requested a role-based access control (RBAC) to increase the security around using the new application. The company also requested that the application menu must be flexible enough to allow adding new menu items to the menu with minimal changes. This includes re-ordering the menu items and making changes to the description of a menu item without having to change the code.Security:The company has...

  • TASK Read the Regional gardens case study document before attempting this assignment. Background: You have been...

    TASK Read the Regional gardens case study document before attempting this assignment. Background: You have been employed by Regional Gardens as their first Chief Information Officer (CIO). You have been tasked by the Board to conduct a review of the company’s risks and start to deploy security policies to protect their data and resources. You are concerned that the company has no existing contingency plans in case of a disaster. The Board indicated that some of their basic requirements for...

  • 1) analyze the following case 2) give a summary and suggest ways for the company ——————...

    1) analyze the following case 2) give a summary and suggest ways for the company —————— Salesforce.com, one of the most disruptive technology companies of the past few years, has single-handedly shaken up the software industry with its innovative business model and resounding success. Salesforce provides customer relationship management (CRM) and other application software solutions in the form of software as a service leased over the Internet, as opposed to software bought and installed on machines locally. The company was...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT