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 the constructor function makestk

Write the constructor function makestk, predicate function emptystk and mutator functions pushstk and popstk

  Create a simple shell

Create a simple shell. Basically your shell should read the line from standard input, parse the line with command and arguments, and operate the command with arguments.

  Write a paper on memory management

Write a paper on Memory Management

  Technical project: sample website project

Technical Project: Sample Website Project , This assignment consists of three (3) sections: a narrative, a storyboard, and a business Website. You must submit all three (3) sections for the completion of this assignment.

  Program to perform a search of an employee list

Write a /bash/bin program to perform a search of an employee list.

  Produce a project plan

Produce a project plan and an interim description of the project development

  Program a maze-type game using assembly language

Project requires you to program a maze-type game using Assembly Language, it is not acceptable to use any other programming language for this project

  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..

  Computer sales and repair store system

It is required to design a relational database system for a "realistic" application

  Show how the tree might be type-checked

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

  Write functions

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

  Questions on programing problem with the process of analysis

Questions on Programing Problem with the process of analysis and reflection that went on as you developed the project.

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