Managing Linux Permissions and Ownership Graded Assessment Answers

In this article i am gone to share Operating Systems Fundamentals Module 5 | Managing Linux Permissions and Ownership Graded Assessment Answers with you..



Managing Linux Permissions and Ownership Graded Assessment Answers


Question 1)
In a shell prompt, you execute the ls -l command and get the following output:

-rw-rwxr-- 1 user group 5 Dec 12 16:43 some.txt

What permission(s) do all users who are not the owner and not in the group have to the some.txt file? (Please type the permission string. You may enter any combination of r, w and x. Please enter them in the order and case they appear in the ACL.)

Answer:  r--


Question 2)
You have opened a shell prompt. The working directory is /home/user/Desktop. In the shell, you execute the following command:

chmod -v u=rwx,g=rwx,o= some.txt

What octal number describes the rights that have been assigned to the some.txt file? (Please enter a three digit number.)

Answer: 770


Question 3)
You need to change the attributes on a file. What command should you use? (Please type only the command itself. Do not type any switches or keywords. Remember, commands do not have spaces in them, and they are case sensitive. Example: ls )

Answer:  chattr


Question 4)
In a shell prompt, you execute the ls -l command and get the following output:

-rw-rwxr-- 1 user user 5 Dec 12 16:43 some.txt

You then execute the lsattr -a command and get the following output:

----i---------e------- ./some.txt

You are currently logged in with a user named user. At the command prompt, you execute the rm some.txt command.

Will the file be successfully deleted? (Please type “y” for yes and “n” for no. Only type either a lower case “y” or a lower case "n”; any other entries will result in a wrong answer.)

Answer:  n









Post a Comment

0 Comments