Question

Suppose that you are a superuser on a Linux system, and there is a file “/home/bob/foo”,...

Suppose that you are a superuser on a Linux system, and there is a file “/home/bob/foo”, which is owned by an ordinary user Bob. You need to give a permission to read this file to an ordinary user Alice, 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.

Homework Answers

Answer #1

As given, In Linux system there is a file “/home/bob/foo”, which is owned by an ordinary user Bob. We need to give read permissions to Alice also, but not anyone else. To solve this, first, we need to create a group and need to add users Bob and Alice. Then we need to change the file permissions so that the newly created group can read that file.

  • Let us create a group first,

groupadd GROUP1

  • Then add Aice in that group,

usermod -a -G GROUP1 Alice

  • Change the file permission so that Alice and the super owner can read that document(Not even Bob).

chgrp Alice /home/bob/foo

chmod 400  /home/bob/foo

As we have changed group ownership also, Bob can not access this file.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and the output in a word document and submit it. Part1: 1. Log in to Linux using your user account name and password. 2. If you logged in using a graphical login screen, open a terminal window by clicking on the icon in the lower left corner of the desktop to open the main menu, then selecting System Tools, then Terminal. A terminal window opens....
You will write a program that loops until the user selects 0 to exit. In the...
You will write a program that loops until the user selects 0 to exit. In the loop the user interactively selects a menu choice to compress or decompress a file. There are three menu options: Option 0: allows the user to exit the program. Option 1: allows the user to compress the specified input file and store the result in an output file. Option 2: allows the user to decompress the specified input file and store the result in an...
Create a very simple TCP Application in JAVA. You will create a client and a server....
Create a very simple TCP Application in JAVA. You will create a client and a server. The client must execute after you start the server. Here is what they will do. The client will read from the console a string that the users enters. This string will be the name of the user, let's say Bob. The client then sends the name, Bob, in an Object Stream, to the server. The server will receive this Object Stream and send to...
MIPS ASSEMBLY Have the user input a string and then be able to make changes to...
MIPS ASSEMBLY Have the user input a string and then be able to make changes to the characters that are in the string until they are ready to stop. We will need to read in several pieces of data from the user, including a string and multiple characters. You can set a maximum size for the user string, however, the specific size of the string can change and you can’t ask them how long the string is (see the sample...
A newly developed hospital requires an Electronic Decision Support System (DSS) for clinicians. This DSS is...
A newly developed hospital requires an Electronic Decision Support System (DSS) for clinicians. This DSS is required to have all the necessary features to help the practice. Develop a Software Requirements Specification (SRS) document that identifies all the necessary requirements for the system. This document must strictly follow the IEEE template uploaded on canvas. However, there may be sections in the template that may not apply to the project, these sections can be eliminated. Use the template below to answer...
1. Vim commands: a. How do you auto indent your program? b. Explain what the following...
1. Vim commands: a. How do you auto indent your program? b. Explain what the following commands do: dd, y3, p, :set cindent (1 pt) VIM exercises These exercises on the computer need to be repeated by each student in the pair. This is to ensure that both students understand how to get around in Linux!!! For this part of the lab, you will create a .vimrc file that will help you develop your C++ programs using VIM. First, we...
Tax Return Problem –?Decision Making Alice J. and Bruce M. Byrd are married taxpayers who file...
Tax Return Problem –?Decision Making Alice J. and Bruce M. Byrd are married taxpayers who file a joint return. Their Social Security numbers are 123-45-6789 and 111-11-1112, respectively. Alice's birthday is September 21, 1969, and Bruce's is June 27, 1968. They live at 473 Revere Avenue, Lowell, MA 01850. Alice is the office manager for Lowell Dental Clinic, 433 Broad Street, Lowell, MA 01850 (employer identification number 98-7654321). Bruce is the manager of a Super Burgers fast-food outlet owned and...
You must assess four peers' responses by May 15, 19:00 UTC. Knorr is a brand owned...
You must assess four peers' responses by May 15, 19:00 UTC. Knorr is a brand owned by Unilever that makes a variety of soup products and seasonings. In 2016, they launched the #LoveAtFirstTaste campaign. This campaign included a three-minute video. If you are not able to watch the video, you should still be able to answer the question below based on the following description. The video begins with diverse group of young, attractive single people answering questions such as: “How...
Write a 4-6 sentence summary explaining how you can use STL templates to create real world...
Write a 4-6 sentence summary explaining how you can use STL templates to create real world applications. In your summary, provide an example of a software project that you can create using STL templates and provide a brief explanation of the STL templates you will use to create this project. After that you will implement the software project you described . Your application must be a unique project and must incorporate the use of an STL container and/or iterator and...
You are asked to design a database to support a Instant Recruitment System of casual staff...
You are asked to design a database to support a Instant Recruitment System of casual staff for a school. The major business requirements are summarised below in the Mini Case: An Instant Recruitment System. You are asked to develop a detailed Entity-Relationship model for this mini case. Your ER model should consist of a detailed ER diagram integrated with itemised discussions on the features of the entities and relationships and all the assumptions you made where applicable. The ER diagram...