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...
When logged in as the root user, how often would you do the command rm -rf...
When logged in as the root user, how often would you do the command rm -rf / ?
Linux Fundamentals part 3 Below are questions related to the command line use of Linux. You...
Linux Fundamentals part 3 Below are questions related to the command line use of Linux. You can use the videos, man pages, and notes to answer these questions. Remember that Linux is CASE SENSITIVE. Rm and rm are NOT the same command. I will count off totally for a question if you do not take this into account. For each command give me the ENTIRE COMMAND SEQUENCE. If I ask you 'What command would I use to move the file...
In Linux Terminal 1. Give a command using find to search from the root directory the...
In Linux Terminal 1. Give a command using find to search from the root directory the file program.f and redirect any errors to the file myerrors.txt 2. Give a command for finding files having the letters index as the beginning of the file name and located in your home directory (provide the absolute path) 3. Give a command for finding within a directory called /mp3collection, only those mp3 files that have a size less than 5000 Kilobytes (< 5MB). 4....
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 Fundamentals part 4 final Below are questions related to the command line use of Linux....
Linux Fundamentals part 4 final Below are questions related to the command line use of Linux. You can use the videos, man pages, and notes to answer these questions. Remember that Linux is CASE SENSITIVE. Rm and rm are NOT the same command. I will count off totally for a question if you do not take this into account. For each command give me the ENTIRE COMMAND SEQUENCE. If I ask you 'What command would I use to move the...
linux use the command dmesg, use grep to filter and then redirect just the lines with...
linux use the command dmesg, use grep to filter and then redirect just the lines with the word Linux in them from the output generated by the dmesg command. redirect this output to a file at the path PutFileHere/Dmesgoutput.txt. What command did you use to do this, if there is no output choose a different word to grep for in the output of this command and substitute that word.
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT