Use of various bash commands

Assignment Help Programming Languages
Reference no: EM1317332

Assignment On: This work will require scripting the use of various bash commands and / or small programs that involve directory and file structures.  

1) Create a user named testuser using sudo to run the add user command. Log in as that user, su will do the trick. Create a file DONOTTOUCH which is writeable only by testuser. Create an executable CHANGETHATFILE that modifies DONOTTOUCH which is read and execute for ‘others’ and, in addition, has a setuid bit such that other users who execute that program can run as testuser to  modify DONOTTOUCH. Script your demonstration and any code you have written. 

2) What does the ‘execute’ bit mean for a directory ? Demonstrate how the execute bit works for referencing files within directories. Does the execute bit need to be set for ANY directory on the path to a file you wish to reference ? Demonstrate and script evidence for the answers to the above questions.

3)A) “Links” can be of two types: hard and soft. You can create either by using bash command ln command. How do these differ? Note the following text from Stevens. “With a symbolic link, the actual contents of the file—the data blocks—store the name of the file that the symbolic link points to.” 

a. Demonstrate the above by creating a symbolic link to a file and a hard link to the same file. 

b. What difference is there when deleting a file using a hard or soft link. Demonstrate and explain. 

Reference no: EM1317332

Questions Cloud

Use an article that simply explains : use an article that simply  explains or describes  something (8 Steps to...; How to...; etc.). Find an article on this in a professional journal in your field and be sure that the author is making a case for something. Then:
Specify several advantages of operating a small business : From the-Activity, compare and contrast the manner in which VectorCal and other businesses that you researched analyze overhead costs. Specify several advantages of operating a small business when it comes to General and Administrative (G&A) expenses..
Determine the types of inventories : Research two (2) manufacturing or two (2) service companies that manage inventory and complete this assignment. Analyze how each of their goods and service design concepts are integrated.
Write the code listing, numerical results from your code : To complete this project, you must turn in the code listing, numerical results from your code (appropriately formatted and aligned for readability with exactly 3 decimal places), and your plots (with appropriate titles, axis labels, labeled legends, ..
Use of various bash commands : Assignment On: This work will require scripting the use of various bash commands and / or small programs that involve directory and file structures.
Waiting time of customers for service normal distribution : The MacBurger restaurant chain claims that the waiting time of customers for service is normally distributed,
Assembly time using new method : Using the .10 level of significance, can we conclude that the assembly time using the new method is faster?
Hypothesis test for independent sample means : At the .05 significance level, is the number of units produced on the afternoon shift larger?
Sampling times concluding mean times : At the .05 significance level, can we conclude that there is a difference in their mean times?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd