Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3) Use chmod with octal number to forbid all permissions to all users. $chmod 000 / Lab3 4) Check the permissions for directory Lab3. You

image text in transcribed
image text in transcribed
3) Use chmod with octal number to forbid all permissions to all users. $chmod 000 / Lab3 4) Check the permissions for directory Lab3. You may see similar output as below. The permission string is changed to - ls -ld-/Lab3 d--------- 4 ylong4@gsuad.gsu.edu ylong@gsuad.gsu.edu 4096 Sep 11 19:09 / home/ylong4/Lab3 I 5) Finishing the following tasks and fill out the blanks in the row for owner's permission "..." in the table below. If the task or command can be executed successfully, mark Y in the table, otherwise, mark N in the table. Please mark N/A if the task or command is not executed. A. Check the contents in directory Lab3. $ls -/Lab3 Create a directory named as "test" in Lab3. Smkdir -/Lab3/test Create a file named as "test.txt" in Lab3. $cat>/ Lab3/test.txt A test AD D. If (B) succeeds, remove the created directory "test" of Lab3. Srm -r-/Lab3/test E. If (C) succeeds, copy "test.txt" from your Lab3 into your home directory. Scp-/Lab3/test.txt . F. Go into directory Lab3. Scd -/Lab3 The blanks in row"--" have been filled out in the table. Please compare it to your answers. 6) Fill out the blanks in other rows by repeating 3) to 5) when the owner is assigned different permissions as in the first column of the table. However, when setting the permissions, we still need to forbid all the permissions to all other users. So the last two bits in the octal number should always be kept as 00. For example, since owner's permissions is --x at next row, we should first set the file permission by issuing the command chmod 100 -/Lab3. And then fill out the blanks in the row for permissions --x by repeating 5). od Owner's permission ls A. Read contents mkdir B. Create sub-directory cat > C. Create file rm D. Remove contents cp E. Copy contents from F. Enter into directory N I N I N I N/A N/A

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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