Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write down commands to accomplish the following tasks: ( 40 points ) Please create a file README.txt to read/write for the owner and read

Please write down commands to accomplish the following tasks: (40 points)

Please create a file README.txt to read/write for the owner and read for everyone else.

Please create a file Input.txt to read/write/execute for the owner and write for everyone else. You MUST use OCT format for file permission.

Please create a bash file myscript.sh that count the number of files/directories in directory /home/Ubuntu/. Turn on the files setuid bit and setgid bit without changing the current permissions.

List the contents of the directory /home/proc/ sorting by modification time and listing the most recently modified file last.

By convention, the /tmp directory is available to all users who care to create files there. What prevents one user from reading or deleting anothers temporary files? (10 points)

Explain the relationship between a files UID, a running processs real UID, and effective UID. Besides file access control, what is the purpose of a processs effective UID? (10 points)

Suppose that a user at your site has started a long-running process that is consuming a significant fraction of a machines resources. (40 points)

How would you recognize a process that is hogging resources?

Assume that the misbehaving process might be legitimate and doesnt deserve to die. Show the commands you would use to suspend the process temporarily while you investigate

Later, you discover that the process belongs to your boss and must continue running. Show the commands youd use to resume the task.

Alternatively, assume that the process needs to be killed. What signal would you send, and why? What if you needed to guarantee that the process died?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

How much is 1/2 % of $10?

Answered: 1 week ago

Question

List the ways that perception is an active mental process.

Answered: 1 week ago

Question

3. Comment on how diversity and equality should be managed.

Answered: 1 week ago

Question

describe the legislation that addresses workplace equality

Answered: 1 week ago