Question

Given my directory dir and my file dir/file owned by me, which permissions allow me to...

Given my directory dir and my file dir/file owned by me, which permissions allow me to access and change the content (data) in the file dir/file but not delete the file?

Homework Answers

Answer #1

Given my directory dir and my file dir/file owned by me, permissions that  allow me to access and change the content (data) in the file dir/file but not delete the file is

644

the explanation of the permission will look like this

Owner or User - Read & Write  permission

Group - Read only permission

Other or Everyone - Read only permission

implementation

to change the permission of the file we can write

chmod 755 myfile.h   // file name myfile.h

This changes the permission of the file (myfile.h) and sets the permission to 755.

You can comment if you have any doubt.
Upvote if you got your answer.
Thanks

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
Create a directory dir1 • Create a file file1 in dir1 • Go to home directory...
Create a directory dir1 • Create a file file1 in dir1 • Go to home directory • Remove owner write permission permission for dir1 • Go to dir1 • Remove file1 Explain your observation? Note: If you don't have write permission for a directory, then you can't delete a file in the directory. If you have write access to the file you can update the data in the file.
Linux, please avocado is an empty file Q14 – Specify a single line command that gives...
Linux, please avocado is an empty file Q14 – Specify a single line command that gives the owner and group permission to execute the file avocado while giving the owner sole permission to read and write the file. Do not change any other permission, i.e., do not remove permission from others to execute the file, if they already have that permission. Q15 – File/directory permissions are subject to permissions on the parent directories. For example, consider the file /home/dv35/cs265/lab1.txt. If...
The c++ question: Assume that there is a valid file cards.txt in the current directory which...
The c++ question: Assume that there is a valid file cards.txt in the current directory which contains 5 valid int values, each on its own line. Write a function which reads all the values from the file and prints out the message “Lucky 7!” to the screen for every 7 it sees. Your function must have the following signature: void printSevens();
Tableau can connect to all these file types except which of the following? Text PDF files...
Tableau can connect to all these file types except which of the following? Text PDF files Excel Microsoft Access Microsoft Power BI Which of the following is least likely to be a Dimension field in Tableau? Total cost Country State Segment None of the choices are correct. Which of the following is least likely to be a Measure field in Tableau? Sales revenue Segment Total cost Quantity sold None of the choices are correct. Which of the following best describes...
please make me a plane for 3 days like brakfast, lunch, dinner which can supply my...
please make me a plane for 3 days like brakfast, lunch, dinner which can supply my plate diet for 3 days.
Can anyone give me a detailed solution to this problem because my teacher has already given...
Can anyone give me a detailed solution to this problem because my teacher has already given me a very brief solution, but I still do not understand how to do it. Thanks! An expert witness in a paternity lawsuit testifies that the length (in days) of a pregnancy, from conception to delivery, is approximately normally distributed, with parameters μ = 270 and σ = 10. The defendant is able to provide evidence that he was out of the country during...
This assignment asks you to develop a basic File Transfer Protocol (FTP) application that transmits files...
This assignment asks you to develop a basic File Transfer Protocol (FTP) application that transmits files between a client and a server using Python.Your programs should implement four FTP commands: (1) change directory(cd), (2) list directory content (ls), (3) copy a file from client to a server (put) and (4) copy a file from a server to a client (get). The project will be completed in two phases. In the first phase, all students will implement two versions of the...
MATLAB Write a script "readFile.m" which:   a. reads a given file "file.dat" into a matrix "XYZ",  ...
MATLAB Write a script "readFile.m" which:   a. reads a given file "file.dat" into a matrix "XYZ",   b. extracts the columns of the data from "XYZ" into arrays "c1", "c2", ..., "cN",   c. plots some column versus another column, with a title, and labeled axes.   To test and debug your code, create a "file.dat" with 3 rows and N=2 columns ( so a 3×2 matrix ).   The first column should be sorted. You can just enter some numbers in "file.dat" in...
Description The word bank system maintains all words in a text file named words.txt. Each line...
Description The word bank system maintains all words in a text file named words.txt. Each line in the text file stores a word while all words are kept in an ascending order. You may assume that the word length is less than 20. The system should support the following three functions: Word lookup: to check whether a given word exists in the word bank. Word insertion: to insert a new word into the word bank. No insertion should be made...
Can someone who knows how to use excel forecast my data and give me exhange rates...
Can someone who knows how to use excel forecast my data and give me exhange rates for Y6Q1, Y6Q2, Y6Q3, and Y6Q4? Also, once the results are added for year 6, can I have a scatter plot with the line going across be done with all the information provided with the information given? Quarter X    Y=Exchange Rate Y3Q1    1 6.07 Y3Q2    2 6.30 Y3Q3    3 5.73 Y3Q4    4 5.57 Y4Q1    5 5.60 Y4Q2   ...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT