Question

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.

Homework Answers

Answer #1

Hi,

Here 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

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
What are the UNIX commands for each of these steps? 1. Copy all the files from...
What are the UNIX commands for each of these steps? 1. Copy all the files from the Files directory in my user account (user305) to your Files directory 2. Redirect echo step 11 to mark this step in the lab3.txt file 3. Display the directories and sub-directories including files so I can verify all the files were copied. 4. Redirect the above step to the lab3.txt file 5.. Copy only the following files from your Files directory to the Classes...
Linux Operation SECTION 2 – File and Directory Permissions: FILE PERMISSIONS: What is the command used...
Linux Operation SECTION 2 – File and Directory Permissions: FILE PERMISSIONS: What is the command used to find out which user account you are logged into?      . This command may come in handy in the following exercises. Ensure you are in your home directory of the student1 account. Use the echo command with output redirection to create a file called labfile4 and put the following text in this file: “This is the first line of labfile4”. Using the symbolic notation...
The course is server management and I am using FREEBSD Create a folder off the root...
The course is server management and I am using FREEBSD Create a folder off the root that can be used for the backed-up files. You will need to use root to create this directory. Set the user and group for this directory to the account that you normally log in to. Create a cron process that will run every thirty minutes and copy the complete contents, including directories and their contents, to the backup location. The copy command should use...
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of...
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of the separation is that they are not displayed by the default version of the ls command)                         a. the prefix "rc" (rc.filename)               c. the extension .cfig                         b. a dot (.) at the beginning                    d. by having the SUID bit set 2. The IP address which is reserved for local loopback (equivalent to "localhost") is:                         a. 255.255.255.0                                   c. 192.168.70.1...
drwxr-xr-x 10 mst staff 320 Sep 18 14:58 Sites drwxr-xr-x 2 mst staff 64 May 28...
drwxr-xr-x 10 mst staff 320 Sep 18 14:58 Sites drwxr-xr-x 2 mst staff 64 May 28 2017 VirtualBox VMs -rw-r--r-- 1 mst staff 633 Dec 11 2019 balance.pl drwxr-xr-x 4 mst staff 128 Oct 11 2014 bin -rw-r--r-- 1 mst staff 473 Dec 13 2019 bitshift.py For this problem, we are mainly concerned with the set of access permissions, which appears at the beginning of the line for each file or directory. Directories have a "d" at the beginning of...
please use linux/unix command terminal to complete, step 1 1-create a new directory named by inlab4...
please use linux/unix command terminal to complete, step 1 1-create a new directory named by inlab4 enter directory inlab4 create a new file named by reverse.c with the following contents and then close the file: /*reverse.c */ #include <stdio.h> reverse(char *before, char *after); main() { char str[100]; /*Buffer to hold reversed string */ reverse("cat", str); /*Reverse the string "cat" */ printf("reverse(\"cat\")=%s\n", str); /*Display result */ reverse("noon", str); /*Reverse the string "noon" */ printf("reverse(\"noon\")=%s\n", str); /*Display result */ } reverse(char *before,...
can you please do this lab? use lunix or C program its a continuation of a...
can you please do this lab? use lunix or C program its a continuation of a previous lab. the previous lab: Unix lab 4: compile and link multiple c or c++ files Please do the following tasks step by step: create a new directory named by inlab4 enter directory inlab4 create a new file named by reverse.c with the following contents and then close the file: /*reverse.c */ #include <stdio.h> reverse(char *before, char *after); main() {       char str[100];    /*Buffer...
As the system administrator, you have received a memo saying that Leslie, Ronsam, Xochi, and Sara...
As the system administrator, you have received a memo saying that Leslie, Ronsam, Xochi, and Sara have been assigned to a work group to do some analysis and they need to work on your Linux system. You need to add these folks as regular users and give them an alternate group that they can switch into. You also need to set up a common folder for them to work in. Your plan is to create a new group called ‘analysis’...
Please linked both files. For this assignment you need to create a ToDo list using Javascript,...
Please linked both files. For this assignment you need to create a ToDo list using Javascript, along with HTML and CSS. Begin by creating a HTML page called todo.html. Then create a Javascript file called todo.js and link it in to the HTML page using a script tag. All Javascript for the assignment must be in the separate file. (For CSS, feel free to include styles in a style block at the top of the HTML page, or to link...
I did already posted this question before, I did get the answer but i am not...
I did already posted this question before, I did get the answer but i am not satisfied with the answer i did the code as a solution not the description as my solution, so i am reposting this question again. Please send me the code as my solution not the description In this project, build a simple Unix shell. The shell is the heart of the command-line interface, and thus is central to the Unix/C programming environment. Mastering use of...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT