Question

In: Computer Science

linux: Become the root user for this exercise. What command did you use to do this...

linux:

  1. Become the root user for this exercise. What command did you use to do this again?

    $
  2. Now that you are root, create a new user on your system called labsevenuser. What is the command you used to create this user?

    #
  3. Set a new password for the new user you just created in step 2 above. What is the command you used to do this?

    #
  4. Create a new group called awesomepeople. Add the user you created in step 2 to this group. What is the command you used to do this?

    #
  5. Paste the last 5 lines of the /etc/group and /etc/passwd here to show that you executed the commands above.

Solutions

Expert Solution

1.create a new user on your system called labsevenuser.

$ sudo useradd labsevenuser

2.Set a new password for the new user you just created.

$ sudo passwd labsevenuser

--This command will propt you to enter and confirm the password.

3.Create a new group called awesomepeople. Add the user you created in that group.


$ sudo groupadd awesomepeople

$ sudo usermod -a -G awesomepeople labsevenuser

4.Paste the last 5 lines of the /etc/group and /etc/passwd here to show that you executed the commands above.

/etc/group:

postdrop:x:90:
postfix:x:89:
chrony:x:996:
labsevenuser:x:1000:
awesomepeople:x:1001:labsevenuser

/etc/passwd:

polkitd:x:999:998:User for polkitd:/:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
chrony:x:998:996::/var/lib/chrony:/sbin/nologin
labsevenuser:x:1000:1000::/home/labsevenuser:/bin/bash


Related Solutions

linux: Become the root user for this exercise. What command did you use to do this...
linux: Become the root user for this exercise. What command did you use to do this again? $ Now that you are root, create a new user on your system called labsevenuser. What is the command you used to create this user? # Set a new password for the new user you just created in step 2 above. What is the command you used to do this? # Create a new group called awesomepeople. Add the user you created in...
Using Linux in VirtualBox Do the Following Exercise: Using the clear command At this point, you...
Using Linux in VirtualBox Do the Following Exercise: Using the clear command At this point, you screen might seem filled with commands and their results. Use the clear command anytime you want a clean slate. This exercise enables you to clear the screen now. To clear the screen: Type clear on the command line, and press Enter. The command prompt is now in the upper-left corner of your screen. [No output or questions for this part.] Viewing manual pages You...
In MongoDB using Linux how do you Execute the command to find the size of a...
In MongoDB using Linux how do you Execute the command to find the size of a single document of your choosing from the enron database Execute the command to find the size of the collection of documents in the enron database
linux To install packages you will need root privelages. To temporarily perform an action with root...
linux To install packages you will need root privelages. To temporarily perform an action with root privileges you use the sudo command demonstrated in item 6 below. In your own words, explain the purpose of the sudo command and why sudo is a better choice than logging in as the root user. Make sure your package listings are up to date by running the following command. $sudo apt-get update When this command is done you will see a line that...
please use linux or unix to complete Diff command The diff command displays differences between two...
please use linux or unix to complete Diff command The diff command displays differences between two files on a line-by-line basis. It displays the differences as instructions that you can use to edit one of the files ( using the vi editor) to make it the same as the other. When you use diff, it produces a series of lines containing Append (a), Delete (d), and Change (c) instructions. Each of these lines is followed by the lines from the...
Use Linux fedora At the command prompt, type route and press Enter. What entries are listed?...
Use Linux fedora At the command prompt, type route and press Enter. What entries are listed? What does each entry represent? What IPv4 address is listed as your default gateway? At the command prompt, type ip route add 1.0.0.0/8 via gwIP and press Enter, where gwIP is the IPv4 address of your default gateway. At the command prompt, type route and press Enter. Is the route added in Step 3 visi- ble? Will this route interfere with traffic that is...
What command(s) do you use to view or edit the Windows registry? What precautions do you...
What command(s) do you use to view or edit the Windows registry? What precautions do you need to take when using it?
Unix / Linux 6. vi editor: In vi command mode, what are the keystrokes you would...
Unix / Linux 6. vi editor: In vi command mode, what are the keystrokes you would type to... Quit the vi editor and save any changes? 7. C language source files, by convention, have the suffix ".c". The associated "header" files have the suffix ".h". What is the command to perform the following task: List all the C source and C header files in the current directory. [Hidden files may remain hidden.] 8. C language source files, by convention, have...
What would these commands look like in Kali Linux? In Kali Linux: a) Create a user...
What would these commands look like in Kali Linux? In Kali Linux: a) Create a user (username= YOUR-FIRSTNAME). b) Create a file (filename=test) and use chmod command to add the write permission for Others. c) Use setfacl to remove write permission to YOUR-FIRSTNAME user. Use getfacl to check the file's permissions. d) Remove YOUR-FIRSTNAME user. Deliverable(Screenshots from each section if possible please)
Linux What is the tar command? a. Can you compress files using tar? Please explain how...
Linux What is the tar command? a. Can you compress files using tar? Please explain how and provide a brief example. b. How do you create a tar file? Please provide an example. c. How do you extract files in a tar format? Please provide an example.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT