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 paper on memory management

Write a paper on Memory Management

  Building instruction set simulators

Building Instruction Set Simulators

  Build a student record managing system application

Build a student record managing system application

  Evaluate the fibonacci series

Write a program to evaluate the first 20 numbers of Fibonacci series.

  Using the irvine32 library functions

Create 32 random points which have (x, y) co-ordinates

  Create a application using the mvc architecture

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

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Application development and programming languages

Application Development and Programming Languages,  Programming languages have evolved since the First Generation Languages (1GLs) in the 1940s. The 1GLs were machine languages, which interacted directly with hardware. 2GLs were assembly languages. F..

  Discussion: html/css

Discussion: HTML/CSS,  "JavaScript Placement"  Please respond to the following: Compare and contrast the process of adding JavaScript and a Cascading Style Sheet to a Website. Determine if they can be used simultaneously in a page. If so, explain wh..

  Unix systems administration

Unix Systems Administration

  Show how the tree might be type-checked

Attempt to derive proof tree for the judgment Show how the tree might be type-checked

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