Unit 4: File Permissions and Ownership - Subjective Questions

CSE105 — Creative Engineering Workshop • Practice Questions with Detailed Answers

20 questions

1

Explain the Linux Permission Model in detail. Describe the three categories of users and the three types of permissions associated with each file.

2

Describe the Read, Write, and Execute permissions and explain how their meaning differs when applied to files versus directories.

3

Explain the chmod command in Symbolic Mode. Give examples of adding, removing, and setting permissions.

4

Explain the chmod command in Numeric (Octal) Mode. Show how permission values are calculated with examples.

5

Distinguish between Symbolic Mode and Numeric Mode of the chmod command. Discuss the advantages and disadvantages of each.

6

Explain the chown command in Linux. Describe its syntax and demonstrate how to change file ownership and group ownership with examples.

7

Define the concept of File Ownership and Group Ownership in Linux. Why is ownership important for system security?

8

Explain the umask command. How does it determine the default permissions of newly created files and directories?

9

A directory has the permission string drwxr-x---. Interpret this permission string completely and give its equivalent numeric (octal) value.

10

Explain the important Permission Security Concepts in Linux, including the Principle of Least Privilege, dangers of 777 permissions, and best practices.

11

Compare the commands chmod, chown, and chgrp. Explain the purpose of each with examples.

12

Given a file with default base permission and a umask value of , derive the resulting default permissions for both a file and a directory. Show all steps.

13

Describe the special permission bits in Linux: SetUID, SetGID, and the Sticky Bit. Explain their use with examples.

14

Explain how to read and interpret the output of the ls -l command. Identify each field with an example.

15

A user reports that they cannot execute a shell script named deploy.sh even though they own it. Analyze the possible permission-related causes and explain the commands to fix the issue.

16

Explain why Linux does not assign the execute permission to files by default (base 666) but does assign it to directories (base 777). Discuss the security reasoning.

17

Write short notes on any two of the following: (a) Recursive permission change using chmod -R, (b) The role of the root user in permission management, (c) Difference between primary group and secondary group.

18

Convert the following into their required forms: (i) rw-r--r-- to octal, (ii) octal 640 to symbolic, (iii) chmod 754 to symbolic representation. Show the working for each.

19

Explain the relationship between file permissions, ownership, and system security. Describe a real-world scenario where incorrect permissions could lead to a security breach.

20

Distinguish between the effect of umask 022 and umask 077. Explain which is more suitable for a shared server versus a private system and why.