Question

In: Computer Science

Given the directory /home/Kitty which contains the files timer.exe and bags.txt. Set the protection but such...

  1. Given the directory /home/Kitty which contains the files timer.exe and bags.txt. Set the protection but such that; Give the commands that would change the permissions. It will be a Linux system
    1. Only the owner Kitty can execute timer.exe.
    2. Kitty’s default group can write to the directory, but no one can delete or move any file except Kitty.

Solutions

Expert Solution

a) Only the owner Kitty can execute timer.exe.

We will use the chmod command to give execution permission only to the owner of the file.

Command:

chmod u+x timer.exe

timex.exe after giving execution permission only to the owner or the user.

b) Kitty’s default group can write to the directory, but no one can delete or move any file except Kitty.

User is denoted by u

Others are denoted by o

Group is denoted by g

First we give the write permssion of th directory to the group using the command:

chmod g+w Kitty

Now the directory has write permsion to the group but we can see that most of them has almost all the permssion, so we need to remove some permissions now.

Removing read and execute permssion from group

Removing execute permission from others

Giving read permision to others.

No we can see that the directory Kitty has write permssion to the group but no one other than the Kitty or the owner can move or delete the file since we have removed those permission from the file for groups and others.


Related Solutions

Question 10 0/1 point (graded) The bash profile in your home directory contains information that the...
Question 10 0/1 point (graded) The bash profile in your home directory contains information that the bash shell runs each time you use it. You can customize the information in your bash profile to tell your system to do different things. For example, you can make an “alias”, which acts like a keyboard shortcut. Which line of code, when added to your bash profile, will let you print “seetop” to view the name, size, and file type of the 10...
Auntie Kitty sells her home for $150,000, which is then invested to earn 5 percent annually....
Auntie Kitty sells her home for $150,000, which is then invested to earn 5 percent annually. If her life expectancy is five years, what is the maximum amount she can annually spend on a nursing home, doctors, and taxes? Use Appendix D to answer the question. Round your answer to the nearest dollar. The maximum amount that can be annually spend is $ ______ If the return were to double to 10 percent, will the amount she may spend each...
Auntie Kitty sells her home for $250,000, which is then invested to earn 4 percent annually....
Auntie Kitty sells her home for $250,000, which is then invested to earn 4 percent annually. If her life expectancy is ten years, what is the maximum amount she can annually spend on a nursing home, doctors, and taxes? Use Appendix D to answer the question. Round your answer to the nearest dollar. The maximum amount that can be annually spend is $   . If the return were to double to 8 percent, will the amount she may spend each year...
Given the same simple Employee-Workson-Project database schema , which contains three files described as follows:
Given the same simple Employee-Workson-Project database schema , which contains three files described as follows:Emp (eid : integer, ename : string, age : integer, salary: real)Workson (eid : integer, pid : integer, hours : integer)Project (pid : integer, pname : string, budget : real, managerid : integer)Note : eid, ename, age and salary are the employee id, name, age and salary respectively. Also, hours is the number of hours worked by employee on a project. The rest of the attributes...
List all files and directories in the current directory and store in a variable called malf....
List all files and directories in the current directory and store in a variable called malf. Count how many lines end with your firstname in the file /etc/conf Explain this command: mv pmu*.[ab]   cces/   Quick help in 5 min pleases with the UNIX program! I want only the final answer
Given main(), complete the Car class (in files Car.h and Car.cpp) with member functions to set...
Given main(), complete the Car class (in files Car.h and Car.cpp) with member functions to set and get the purchase price of a car (SetPurchasePrice(), GetPurchasePrice()), and to output the car's information (PrintInfo()). Ex: If the input is: 2011 18000 2018 where 2011 is the car's model year, 18000 is the purchase price, and 2018 is the current year, the output is: Car's information: Model year: 2011 Purchase price: 18000 Current value: 5770 Note: printInfo() should use three spaces for...
Unix ramdom question. How do you display a list of files in your current directory, sorted...
Unix ramdom question. How do you display a list of files in your current directory, sorted by file size with the largest files at the top.
(5) In each part below, find a basis for R4 that contains the given set, or...
(5) In each part below, find a basis for R4 that contains the given set, or explain why that is not possible: (a) {(1,1,0,0),(1,0,1,0),(0,1,1,0)} (b) {(1,−1,0,0),(1,0,−1,0),(0,1,−1,0)} (c) {(1,1,0,0),(1,−1,0,0),(0,1,−1,0),(0,0,1,−1)} (d) {(1,1,1,1),(1,2,3,4),(1,4,9,16),(1,8,27,64),(1,16,81,256)}
A drive you’re investigating contains several password-protected files and other files with headers that don’t match...
A drive you’re investigating contains several password-protected files and other files with headers that don’t match the extension. Write a report describing the procedures for retrieving the evidence with some of the forensics tools and hexadecimal editors discussed in this chapter(NSRL Hashes and Winhex). Explain how to identify the file headers and determine how their extensions are mismatched. Then discuss what techniques and tools you can use for recovering passwords from the protected files.
The given data set contains the amount of time(in minutes) students in an online course spent...
The given data set contains the amount of time(in minutes) students in an online course spent studying an assignment in a certain semester. According to the historical study, the mean time students would spend on this section nationwide is 95 minutes. While a researcher thinks that this semester student might be using more time. Use ? = 0.05 level of significance. Keep at least three decimal places for numerical answers. (1) State the null hypothesis and alternative hypothesis for this...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT