Question

In: Computer Science

Add an account for yourself on the Linux host you are working with. The account should...

  1. Add an account for yourself on the Linux host you are working with. The account should be your last name, and first initial so Joe Smith’s account would be smithj. Provide a screen shot below:

Make a copy of the /etc/services file in your home folder. How many times the string “tcp” appear in the file? Provide a screen shot below:

How would you add your account to the wheel group, in the /etc/group file using a one line command? Provide a screen shot below:

Solutions

Expert Solution

Please find the answer for adding a new user account and adding user to wheel group.

Adding the user "smithj":

"useradd" command is invoked to add a new user in linux host.

root@osboxes:/home/osboxes# useradd smithj

root@osboxes:/home/osboxes# grep smithj /etc/passwd
smithj:x:1005:1008::/home/smithj:

Screen Shot:



/etc/services file can be copied by "cp" command:

root@osboxes:~# cp -p /etc/services ~/

root@osboxes:~# grep -c "tcp" services
316

Screen Shot:

Adding the user "smithj" to group "wheel" using "usermod" command

Step 1: If a "wheel" group is not found then use the following command to create a group wheel.

root@osboxes:~# groupadd -g 156 wheel

Step 2: If a group is already present, execute the following commands

root@osboxes:~# usermod -G wheel smithj

root@osboxes:~# grep smithj /etc/group
smithj:x:1008:
wheel:x:156:smithj

Screen Shot:



Related Solutions

Imagine you are working with a partner to plan and host a workshop on leadership.
Imagine you are working with a partner to plan and host a workshop on leadership. There will be 100 people attending. Within this assignment you will be creating a document that discusses the main components of leadership and corporate culture. Write a three to five (3-5) page paper in which you: Address a key leadership trait that can assist in managing conflict. Discuss a tool or strategy a leader can adopt for improving communication within the organization. Describe some methods...
linux. If you are running UBUNTU: There may be an issue with the arrow keys working...
linux. If you are running UBUNTU: There may be an issue with the arrow keys working properly in vi on Ubuntu. When you use the arrow keys in insert mode the letters A, B, C, and D get printed instead. There are a few fixes to this problem but the main culprit is the version of vi installed on your system. Ubuntu ships with vi-light. Let’s upgrade to the full vi. Use apt to install the vim package (vim is...
When working in a Linux operating system and you mount a nfs permission on a drive,...
When working in a Linux operating system and you mount a nfs permission on a drive, what default permission are given? Working with swap partition as we have done, identify what a swap partition is and what is it used for? If a system has 16G or RAM, what is normal practice for the swap partition? What is debugfs? what does this command aid in when working on a filesystem?
What are the steps you should take to prepare yourself for entrepreneurship?
What are the steps you should take to prepare yourself for entrepreneurship?
You start a savings account today by depositing $1,000 in an account. Each year you add...
You start a savings account today by depositing $1,000 in an account. Each year you add 3% to the amount you deposited in the previous year. You do this for 20 years (21 total payments including the payment today.) The interest rate is 6%. How much will you have in the bank at the end of year 20.
Imagine you are working with a partner to plan and host a workshop on leadership. There will be 100 people attending.
Imagine you are working with a partner to plan and host a workshop on leadership. There will be 100 people attending. Within this assignment you will be creating a document that discusses the main components of leadership and corporate culture.Write a three to five (3-5) page paper in which you:Address a key leadership trait that can assist in managing conflict.Discuss a tool or strategy a leader can adopt for improving communication within the organization.Describe some methods for motivating employees and...
In Kali Linux, create two users Guest2 and Guest3. Use the user (for yourself in Question...
In Kali Linux, create two users Guest2 and Guest3. Use the user (for yourself in Question 1) to create a directory Ex-dir containing a text file File1.txt. I. Display the owner and group for the directory Ex-dir; (Take a screenshot of the command and its output) II. Change the group of the directory Ex-dir to Guest2; (Take a screenshot of the command) III. Change the permission mode of Ex-dir such that Guest 2 (as a group user) has permissions read...
My add method is not working to add elements into an arrayList in java. This is...
My add method is not working to add elements into an arrayList in java. This is the error message I keep getting: Exception in thread "main" java.lang.NullPointerException    at assignment1.ArrayBag.add(ArrayBag.java:50)    at assignment1.Main.main(Main.java:21) BUILD FAILED (total time: 0 seconds) The following are all the methods I've created. /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package...
While working on the digital effects for Star Wars XXIII, you find yourself responsible for a...
While working on the digital effects for Star Wars XXIII, you find yourself responsible for a scene in which a TIE fighter (of mass m) crashes and embeds itself into a Star Destroyer (of mass 20m). To improve upon the scientific realism of the series, you decide to calculate the physics of the collision. Model the TIE fighter as a point particle and the Star Destroyer as a rod; assume that the fighter hits close to one end of the...
[Linux permissions] Suppose that you are a superuser on a Linux system, and there is a...
[Linux permissions] Suppose that you are a superuser on a Linux system, and there is a file “/home/alice/foo”, which is owned by an ordinary user Alice. You need to give a permission to read a this file to an ordinary user Bob, but no one else (of course, you as superuser will be able to read it too). Explain how you will do it. Note: You do not have to provide specific commands, just a short description will suffice. [Limitations...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT