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?

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


Exit from being the root user and use the following command to “become” the labsevenuser. Use the man page to tell me what the – (dash) option does for the su command in the space below. The command “su” stands for switch user.

$ su – labsevenuser

Explanation of – (dash):

Solutions

Expert Solution

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

$ sudo useradd labsevenuser

useradd is a command in Linux that is used to add user accounts to your system.

sudo gives escalated priviledges to user but require the admin password.

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

$ sudo passwd labsevenuser

passwd command in Linux is used to change the user account passwords.

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


groupadd command creates a new group account using the values specified on the command line and the default values from the system.

$ sudo groupadd awesomepeople

$ sudo usermod -a -G awesomepeople labsevenuser

usermod command or modify user is a command in Linux that is used to change the properties of a user in Linux through the command line

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

The /etc/group is a text file which defines the groups to which users belong under Linux and UNIX operating system.

/etc/passwd is a text file that contains the attributes of (i.e., basic information about) each user or account on a computer running Linux

/etc/group:

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

6. $ su – labSevenUser

If you have any doubts, leave a comment below and I'll help you out.


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
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...
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...
In LINUX Provide the command(s) and any additional steps to perform the following tasks. You will...
In LINUX Provide the command(s) and any additional steps to perform the following tasks. You will need to be running with root privileges. Create a symlink to the /etc/openldap/ directory named "ldapconf" in /tmp/. Find all .conf files in the /etc/ directory and its subfolders. Find all directories starting with "gnome" or "GNOME" anywhere under the /usr/share/ directory. Sam and Susan are members of the "sales" group. Sam has been working on a project that has grown too big for...
ROLE-PLAY EXERCISE On Command Corporation PROCESS You have been assigned a role in the On Command...
ROLE-PLAY EXERCISE On Command Corporation PROCESS You have been assigned a role in the On Command Corporation case. Please read the general information (Introduction) about the case. Read and understand your role. Your teammates have different roles. Due the situation, you need to work with your team to produce an employee meeting, you have 15 minutes to present the statement and conduct the meeting – see the link attached with information about an employee meeting (you need to create a...
What command do I use in R to compute the probability that a t distribution with...
What command do I use in R to compute the probability that a t distribution with 36 df exceeds 2.5 and then how do I compute the lower 10th percentile of a t distribution with 54 df (using what command in (R)?
Linux operation 1. Explain what this command does: rpm –qai | more ..... ? 2. Ps...
Linux operation 1. Explain what this command does: rpm –qai | more ..... ? 2. Ps – Af |grep -v ^root, Explain how this command to find application processes could helpful in the real world to the system administrator?? 3. Clearly describe 3 valid command options, and their meaning, of this command used to add users? 4. List 2 different variants of the Unix (not Linux) operating system, as well as their corresponding vendor (the company that developed them) ?...
a) Observe the following Linux commands and work out what each command does: 1) $ ls...
a) Observe the following Linux commands and work out what each command does: 1) $ ls –al 2) $ /etc/profile 3) $ chmod 200 final_assignment.txt b) Consider a scenario where Bob has downloaded his messages to the local machine with an access of POP3, he can create mail folders and move the downloaded messages into the folders. Bob can then delete messages, move messages across folders, and search for messages (by sender name or subject). But this paradigm—namely, folders and...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT