Question

use linux follow instructions , put the commands at each step and screenshot at each step...

use linux follow instructions , put the commands at each step and screenshot at each step

1.Add a user user1 in the system

a)Verify that user1 is created by viewing the passwd file

b)What is the primary group of user1?

2.Create a group called cybersecurity

a)Verify that the group is created by viewing the group file

b)Change the primary group of user1 to cybersecurity

c)Verify that the primary group of user1 is changed to cybersecurity

3.Log into user1 account

4.Create a new user user2

a)What do you get? Why?

5.Add user1 to group sudo

a)What do you need to do to add user1 to sudo? (Do it!)

6.Go back to user1 terminal and create a new user user2

7.Display the groups that user1 belongs

8.Display the groups that user belongs

9. Logged in as the superuser in your Linux machine, try to view or modify these files:

                                        /etc/passwd

/etc/shadow

9. Which ones can you view without sudo?

10. Which ones can you modify without sudo?

11. Which ones can you view with sudo?

12. Which ones can you modify with sudo?

13. Why do you think the settings are so? Explain.

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

Please go through screen shots.

1.

2.

3.

4.

5. user1 is not had sudo permission so it can not create a new user.

6.

7.

9: /etc/passwd can view without sudo. /etc/shadow can not see without sudo.
10: /etc/shadow or /etc/passwd can not modify without sudo
11: /etc/passwd and /etc/shadow can view with sudo.
12: /etc/passwd and /etc/shadow can modify with sudo.
13: user and group settings are so important to access any file in linux.

Add a comment
Know the answer?
Add Answer to:
use linux follow instructions , put the commands at each step and screenshot at each step...
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
  • Problem 1 Write a BASH script to create a user account from the Linux system on...

    Problem 1 Write a BASH script to create a user account from the Linux system on which your script is run. The script should process two positional parameters. First positional parameter is supposed to be a string with a user name (e.g., user_name) Second positional parameter is supposed to be a string with a user password (e.g., user_password) In your script: Check if two positional parameters were passed to your script when it was invoked If NOT, print an appropriate...

  • LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check...

    LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check the output) Display the command(s) used to do the following: create an empty file called history by using just a redirection operator. Verify and show. Show/verify all results (i.e., all commands and their corresponding outputs). Wait 1 minute or more and then display the command(s) used to do the following: change the timestamp on the history file you just created. Verify/display the change. Show/verify...

  • Cybersecurity Fundamentals Lab #9: Access ControlName: ____________________ If your Kali VM is already up and running,...

    Cybersecurity Fundamentals Lab #9: Access ControlName: ____________________ If your Kali VM is already up and running, login to the root account on the VM via ssh. It does not matter whether you use a command line or GUI sshclient. If your VM is not currently up, use the vSphere web client to start your VM before logging into it via ssh.1: Create an Unprivileged User For some labs, including this one, we will need a non-root user account on the...

  • UNIX File Permission help, please answer the questions in the green boxes. Thank you Lab 03...

    UNIX File Permission help, please answer the questions in the green boxes. Thank you Lab 03 File Permissions In this lab we will: learn about file permissions learn to create symbolic links and hard links Utilities that will be utilized in this Lab: us, cd, less, cat touch, chmod id umask, mkdir, In, echo and redirection Users and Groups Linux supports several methods of controlling access to files an directories. In this lab we are going to learn the traditional...

  • 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...

  • I need help with my homework assignment Linux systems keep user account information in the passwd...

    I need help with my homework assignment Linux systems keep user account information in the passwd file and the encrypted password in the shadow file. The passwd file containing account information might look like this: smithj:x:1001:1001:John Smith:/home/smithj:/bin/bash The shadow file containing password and account expiration information for users might look like this: smithj:KJDKKkkLLjjwlnttqoiybnm.:10063:0:99999:7::: The fields in the shadow file are separated by a colon, with the first field being the username and the second being the password. Under normal circumstances,...

  • Step 3: How would you write this script in C? It needs to do the things...

    Step 3: How would you write this script in C? It needs to do the things required in step 3. 1. You have received a new batch of distinguished users; their basic information is located in newusers.tar. Inside of the tar file, there is a file called "newusers.txt" which contains a colon-separated entry for each user: the username, the uid, the GECOS information, and the user's preferred shell. Also in the tar file you will find a public key for...

  • Question 32 Which view would you use to see only the tables you have created ALL_TABLES...

    Question 32 Which view would you use to see only the tables you have created ALL_TABLES USER_TABLES USER_TABS ALL_OBJECTS 2 points Question 33 Which script will you execute to create new user DAVE and give him the ability to connect to the database and the ability to create tables, sequences, and procedures? CREATE USER dave IDENTIFIED BY dave18; GRANT create table, create sequence, create procedure TO dave; CREATE USER dave IDENTIFIED BY dave18; GRANT create session, create table, create sequence,...

  • 1. Which of the following commands will locate all of the program files on a computer...

    1. Which of the following commands will locate all of the program files on a computer on which the SUID bit is set? Select one: a. find / -type SUID b. find / -perm +4000 -type f c. find / -perm +SUID -type f d. find / -suid 2. A server/computer combination appears in both hosts.allow and hosts.deny. What's the result of this configuration when TCP wrappers runs? Select one: a. TCP wrappers refuses to run and logs an error...

  • First Drawing Assignment: Draw as complete a Class diagram as you can for the following possible...

    First Drawing Assignment: Draw as complete a Class diagram as you can for the following possible application. We wish to BUILD A SOCIAL NETWORKarrow-10x10.png for COMPUTERarrow-10x10.png Science graduate students. This network will allow any graduate student to login and logout. Once logged in, the student may do any of the following: 1. Join a group of fellow students 2. Leave a group of fellow students 3. Create a group which fellow students may join if they wish. Creating a group...

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
ADVERTISEMENT