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...
Once you are in the Linux environment, perform the following steps: Set an environment variable for...
Once you are in the Linux environment, perform the following steps: Set an environment variable for USER that holds the value of your name. For this submission, you will write a BASH shell program that meets the following requirements: Clear the screen. Display to the user what the program will do and that the program is starting. Display to the user the string “Hello“ and the value of the USER environment variable. Output a blank line. Display to the user...
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...
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....
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
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...
You need to write and run C programs (as processes on your Linux machine), and monitor...
You need to write and run C programs (as processes on your Linux machine), and monitor their behavior. Consider the following problem: A program is to be written to print all numbers between 1 and 1000 (inclusive) that are not (evenly) divisible by either 2 or 3. This problem is to be solved using three processes (P0, P1, P2) and two one-integer buffers (B0 and B1) as follows:  P0 is to generate the integers from 1 to 1000, and...
[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