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

What are the permissions for your home directory set by your system administrator? What command did...
What are the permissions for your home directory set by your system administrator? What command did you use to answer the question? Show your session.
Java Chapter 12.29 (Rename files) suppose you have a lot of files in a directory named...
Java Chapter 12.29 (Rename files) suppose you have a lot of files in a directory named Exercisei_j, where i and j are digits. Write a program that pads a 0 before j if j is a single digit. For example, a file named Exercise2_1 in a directory will be renamed to Exercise2_01. In Java, when you pass the symbol * from the command line, it refers to all files in the directory (see Supplement III.V). Use the following command to...
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...
Write a bash script to find all the files ending with .c recursively for every directory...
Write a bash script to find all the files ending with .c recursively for every directory in your current working directory, then copy each one to a folder called programs, need handle duplicates by appending the number to the end of the file (ex main.c main-1.c ) compile them and generate a report report should look like: main.c compiles prog2.c failed main-2.c compiles etc.
using python In the directory rootdir some of the files contain randomly generated content while others...
using python In the directory rootdir some of the files contain randomly generated content while others are written by human authors. Determine how many of the files contained in the directory are written by human authors. Store your answer in the variable number_human_authored.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT