Question

In: Computer Science

You are to create a hard link to one of your existing files on someone else's...

You are to create a hard link to one of your existing files on someone else's directory (or vice versa). In other words, you know that you can link a file within your own directories, but you can also have a link to one of your files on other areas of the unix system as long as you have permissions to write to that directory (in this case, your partner).

Create a subdirectory called temp where you can place this temporary link.

Remember that you do not link a file to another file. You create a hard link to an existing file.

So, user A has file1 that he/she wants to give access to user B. User B has to open certain directory permissions, for this to happen, then User A can create the link on user B directory (user A NEVER goes to user B directories typing cd), but if permissions are opened correctly all the commands will be done from user A directory without shell error messages such as “can not access..”.

The question? what did you have to do for this work? Describe ALL the steps showing the commands. Be very precise on these steps. A person should be able to take step by step described and accomplish the task of creating a hard link. Make sure to be precise. I should be able to follow these steps and create the link (BE COMPLETE). This will be like a recipe, I will need to type each step and complete this task showing the commands.


step 1. ... user B opened permissions... (show command chmod ..... )
step 2. ... user A creates a directory and changed permissions, chmod ...
step 3..

The 2 persons reading the steps will be able to accomplish this task as if they have never done this before. (the first time that you bake a cake, instructions need to be complete and precise to work). It is not a narrative, it is a step by step solution.

Solutions

Expert Solution

I have used ubuntu server to create your scenario.

Step 1 : As a root user (User A) a sample file is available in a directory (/tmp/test.txt)
Step 2 : Create Hard link using command (ln [original filename] [link name])
ln test.txt /home/sat/hl - here hl is hard link name of test.txt file. And we are writing into another user directory (User B)
Step 3 : User B now can able to access this file from User A.
Step 4 : If you delete original file also User B still will be able to access the content of the file because of Hard link.

Hope this is helpful

Please please upvote if it is helpful it helps me alot and please please dont downvote


Related Solutions

Doing the work on Linux in Putty: You are to create a hard link to one...
Doing the work on Linux in Putty: You are to create a hard link to one of your existing files on someone else's directory (or vice versa). In other words, you know that you can link a file within your own directories, but you can also have a link to one of your files on other areas of the unix system as long as you have permissions to write to that directory (in this case, your partner). Create a subdirectory...
Create files with the following names : test1, test2, test3. Create a symbolic link to test2...
Create files with the following names : test1, test2, test3. Create a symbolic link to test2 and name it test4 Create a directory and name it test5. Write a shell script to perform the following tasks: • check if a file named test6 exist. If not, it should create it. • Display a text to indicate whether test4 is symbolic link or not • Display a text to indicate whether test2 is directory or not • Display a text to...
The link to the data is below, just click the link & open up the files...
The link to the data is below, just click the link & open up the files please. Listed under MOISTURE http://www.mediafire.com/download/thnnoaaqqefdwcf/excel_files.zip An important quality characteristic used by the manufacturer of Boston and Vermont asphalt shingles is the amount of moisture the shingles contain when they are packaged. Customers may feel that they have purchased a product lacking in quality if they find moisture and wet shingles inside the packaging. In some cases, excessive moisture can cause the granules attached to...
The hard drive in your computer is full of valuable files and data. Write a memo...
The hard drive in your computer is full of valuable files and data. Write a memo to Paul Roberto your supervisor, requesting that your hard drive be replaced by one with greater capacity (or that a second hard drive be added to your system). Make as strong a case as you can: e.g. greater productivity, better programs, etc.   Note : the Answer Should be Computerized
Creating a Digital Survey Create the shareable link for your survey and paste it in as...
Creating a Digital Survey Create the shareable link for your survey and paste it in as the submission for this assignment. Collect the following information: Age Gender Birth Month Height (in Inches) Shoe Size Eye Color Number of hours of TV (movies, streaming, etc.) watched last night Number of credits currently taking Number of hours of sleep gotten last night Number of hours worked last week Number of songs on digital music player Number of friends on Facebook Number of...
In this task, you will create a Python script in which you will practice reading files...
In this task, you will create a Python script in which you will practice reading files in Python and writing them to a new output file. Construct a text file called Py4_Task3_input.txt that has the following lines: 4 Sandwiches 04 July 2020 Pasta 31 October 2014 Hot Dogs 15 November 2005 Tacos 25 December 1986 The first line of the file represents the number of lines in the data file. Write a loop that reads in each additional line (one...
C++ Create an ArrayBag template class from scratch. This will require you to create two files:...
C++ Create an ArrayBag template class from scratch. This will require you to create two files: ArrayBag.hpp for the interface and ArrayBag.cpp for the implementation. The ArrayBag class must contain the following protected members: static const int DEFAULT_CAPACITY = 200; // max size of items_ ItemType items_[DEFAULT_CAPACITY]; // items in the array bag int item_count_; // Current count of items in bag /** @param target to be found in items_ @return either the index target in the array items_ or...
Create a program in JAVA that displays a design or picture for someone in your quarantine...
Create a program in JAVA that displays a design or picture for someone in your quarantine household/group: a pet, a parent, a sibling, a friend. Make them a picture using the tools in TurtleGraphics and run your program to share it with them! Use a pen object, as well as any of the shape class objects to help you create your design. You must use and draw at least 5 shape objects. - You must use a minimum of 4...
create a PowerPoint presentation at least 15 to 20 slides and Link that discuss your plan...
create a PowerPoint presentation at least 15 to 20 slides and Link that discuss your plan cover each of the five demands of quality Healthcare. 1 access 2 structure, 3 process, 4. outcome, 5 patient experience. quality improvement in each demand should be explained and applied to the healthcare faculty includes detailed speaker notes describe your program. be sure to include references and sight from at least five sources your PowerPoint presentation needs to be visually appealing as your goal...
Create a 250 word discussion post that includes a working link to your article as well...
Create a 250 word discussion post that includes a working link to your article as well as the insights you gleaned from the article B2B applies to business buying and selling to each other over the internet and is by far the most significant e-business model.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT