Question

In: Computer Science

linux To install packages you will need root privelages. To temporarily perform an action with root...

linux

  1. 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.
  2. 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 says how much data was fetched. Paste that line here.

Now describe what apt-get update does? Why is this important?

Solutions

Expert Solution

The sudo command allows the user to run a command as a superuser. Using sudo is better than logging in as a root user, as :-

1. sudo can be setup with a complex security policy, allowing each user on the system varied rights.

2. The root credentials can be kept private instead of having to be shared to multiple users everytime they need to do an administrative task.

3.The authentication that sudo provides expires very shortly, allowing for a much more secure machine if the user leaves it unattended.

"Fetched 1286 kB in 3s (377 kB/s)"

sudo apt-get update command downloads updated package lists from all the repositories that you currently use on your machine, updating their dependencies. This essentially allows your machine to keep a track of the newest updates for the packages on it, and allows the user to update them whenever they wish. It is important to run sudo apt-get update before you install a package as omitting to do so may lead in the user downloading an outdated package.


Related Solutions

Search the Internet for Kali Linux (no need to install it at this time ), list...
Search the Internet for Kali Linux (no need to install it at this time ), list at least five wireless hacking tools that are included in Kali linux, Include the following information for each tool: Name of the tool Summary of what the tools does How it is used What type of output Link of website related to the tool. At least one You-tube link that shows how the tool works.
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...
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...
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...
Operating Systems class Complete the following work with Linux commands and submit the screenshot. 1.Install a...
Operating Systems class Complete the following work with Linux commands and submit the screenshot. 1.Install a virtual machine with Lubuntu 2.Log in and display the content of your home directory 3.Create a directory called homework under your home directory and navigate to homework directory 4.Create a file called newfile under homework directory (this can be done by Leafpad) 5.Copy the file newfile to tempfile, then rename tempfile to myfile and delete newfile 6.Display the content of myfile
[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...
[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.
You are provided with an ethical dilemma (below). You need to determine a course of action...
You are provided with an ethical dilemma (below). You need to determine a course of action using Kidder's ethical decision-making framework. Using Kidder’s steps for making ethical decisions: - identify potential ethical dilemmas/considerations resulting from your recommendations. - Set-out and evaluate potential alternative courses of action to resolve the ethical issue - Determine a course of action Ethical Dilemma You have been the Manager at Sunshine Child Care for 5 years now and although it is a busy role, you...
Think of a definable action you perform in your daily life that requires more than one...
Think of a definable action you perform in your daily life that requires more than one direction to complete the task. An example would be swinging and releasing a bowling ball (do not use this example). a) Identify the primary joints involved. b) Separate the action into at least 5 steps/stages (the direction of movement could be useful to categorize the steps). c) Within each step/stage, identify the muscles that contribute to the respective motion at each joint.
You are a small biotechnology firm and need the financialsupport and the set-up to perform...
You are a small biotechnology firm and need the financial support and the set-up to perform clinical trials on your formulas, what might be your best, and least risky, source of funding? Why?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT