Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a set of Symbolic Links: Linux lab in Ubuntu vagrant@base-debootstrap :$ cat file_a > This is file a > EOF vagrant@base-debootstrap:~$ ls -1

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

This is a set of Symbolic Links:

Linux lab in Ubuntu

image text in transcribed

vagrant@base-debootstrap :$ cat file_a > This is file a > EOF vagrant@base-debootstrap:~$ ls -1 total 4 -rw-rw-r-- 1 vagrant vagrant 15 Feb 01 09:44 file_a vagrant@base-debootstrap:~$ ln -s file_a file_b vagrant@base-debootstrap :~$ ls -1 total 4 -rw-rw-r-- 1 vagrant vagrant 15 Feb 1 09:44 file_a lrwxrwxrwx 1 vagrant vagrant 6 Feb 1 09:44 file_b -> file_a vagrant@base-debootstrap :$ cat file_a This is file a vagrant@base-debootstrap :~$ cat file_b This is file a vagrant@base-debootstrap:~$ ls -ltrh total 4.OK -rw-rw-r-- 1 vagrant vagrant 15 Feb 1 09:44 file_a lrwxrwxrwx 1 vagrant vagrant 6 Feb 1 09:44 file_b -> file_a vagrant@base-debootstrap: chmod u-wx file_b vagrant@base-debootstrap :~$ ls -ltrh total 4.OK -r--rw-r-- 1 vagrant vagrant 15 Feb 1 09:44 file_a lrwxrwxrwx 1 vagrant vagrant 6 Feb 1 09:44 file_b -> file_a vagrant@base-debootstrap :~$ echo "test" >> file_a -bash: file_a: Permission denied vagrant@base-debootstrap:~$ mkdir oldfiles vagrant@base-debootstrap:~$ mv file_a oldfiles vagrant@base-debootstrap :~$ ls -1 total 4 lrwxrwxrwx 1 vagrant vagrant 6 Feb 1 09:44 file_b -> file_a drwxrwxr-x 2 vagrant vagrant 4096 Feb 1 09:49 oldfiles vagrant@base-debootstrap :~$ cat file_b cat: file_b: No such file or directory chmod This part of the lab needs to be executed as the vagrant account 1. Change directory to the home directy. Run the command umask 077. Create an empty file called newfile. What are the permissions of this file? 2. Complete the following table by providing the chmod command that will make the file transition through the permissions indicated in the column Attributes, or by providing the Attributes that would result from running the chmod command if specified. This means that the comands are run sequentially (i.e. for row n you need to call chmod so the file transtions from the attributes in row n-1 to the attributes in row n). Attributes Notation chmod command -rwx------ symbolic -r-x------ Octal -rwxr--r-- symbolic octal chmod 755 newfile -rwxrw---- symbolic -r-xr--r-x octal symbolic chmod ug+w,o=r newfile symlinks 3. In the example given in the "Symbolic Links" section of the lab, the link was broken once we moved the file to another directory. Provide an In command that will fix this issue (check the man pages / recall absolute and relative paths)

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

Recommended Textbook for

Genetic Databases

Authors: Martin J. Bishop

1st Edition

ISBN: 0121016250, 978-0121016258

More Books

Students also viewed these Databases questions

Question

design a simple disciplinary and grievance procedure.

Answered: 1 week ago