Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Explain to a group of business users how permissions in Linux can be accompli

ID: 3890753 • Letter: 1

Question

1. Explain to a group of business users how permissions in Linux can be accomplished using the chmod command and the character method of user(u) group(g) and other(o). Give three specific examples of adding read, write and execute or a combination of two permissions to a directory and a file.

2. Explain to a group of business users how permissions in Linux can be accomplished using the chmod command and the numerical method of using binary numbers to limit access and grant access. Give three specific examples of adding read, write and execute or a combination of two permissions to a directory and a file.

3.Explain to fellow IT Linux administrators what commands to use and how to use "the sticky bit" to grant user permissions at the directory level and restricting access and modify and delete with this bit set.

Explanation / Answer

Firstly, understanding what is chmod.

chmod is used to change the permissions of files or directories.

chmod stands for Change Mode.

So what does modes mean in linux ?

There is a set of rules for each file which defines who can access that file, and how they can access it. These rules are called file permissions or file modes.

Lets look at the syntax of chmod :

chmod options permissions file name

permissions defines the permissions for the owner of the file (the "user"),

members of the group who owns the file (the "group"), and anyone else ("others").

There are two ways to represent these permissions: with symbols (alphanumeric characters), or with octal numbers (the digits 0 through 7).

Let's say you are the owner of a file named yourFile, and you want to set its permissions so that:

b)

Let's say you are the owner of a file named yourfile, and you want to set its permissions so that:

c)

Sticky Bit is mainly used on folders in order to avoid deletion of a folder and it’s content by other users though they having write permissions on the folder contents. Now if sticky bit is set, then owner and root can only delete it

above command, We are setting Sticky Bit(+t) to folder /mydir/myfie by using chmod command.

Numeric way:

1 indicates Sticky Bit set, 7 for full permissions for owner, 5 for read and execute permissions for group, and full permissions for others.

How to check if the sticky bit is set or not:

use ls and we will observe the following:

After Sticky Bit:

Observe that, x in others permissions field is replaced by t.

How can I remove Sticky Bit bit on a file/folder?