You are on page 1of 13

Complete

Linux Administration
Troubleshooting Skills

1
LINUX ADMINISTRATION

Permissions in Linux

Ownership Permissions File &


of Linux for any file, Directory
files directory attributes

Changing
Access
Permissions Special
Levels & & Permissions
Modes Ownership

2
LINUX ADMINISTRATION

Permissions in Linux

 There are three permissions for any file, directory.

 The following lists the symbols used to denote each, along with a brief description:

 r — Indicates that a given category of user can read a file.


 w — Indicates that a given category of user can write to a file.
 x — Indicates that a given category of user can execute the file.

3
LINUX ADMINISTRATION

Permissions in Linux

 Each of the three permissions are assigned to three defined categories of users.

 owner — The user permissions apply only the owner of the file or directory, they will not
impact the actions of other users.
 group — The group permissions apply only to the group that has been assigned to the
file or directory, they will not effect the actions of other users.
 others — The others permissions apply to all other users on the system, this is the
permission group that you want to watch the most.

4
LINUX ADMINISTRATION

Permissions in Linux

5
LINUX ADMINISTRATION

File & Directory Attributes

6
LINUX ADMINISTRATION

Permissions in Linux
 Chmod – changing file permissions

 The chmod command is used to change the permissions of a file or directory.

 chmod permissions filename

7
LINUX ADMINISTRATION

Permissions in Linux
 There are 2 ways to use the command -

 Absolute mode
 Symbolic mode

 Absolute(Numeric) Mode

 In this mode, file permissions are not represented as characters but a three-digit octal
number.

8
LINUX ADMINISTRATION

Permissions in Linux

9
LINUX ADMINISTRATION

Permissions in Linux
 Symbolic Mode

 In the Absolute mode, you change permissions for all 3 owners. In the symbolic mode, you
can modify permissions of a specific owner. It makes use of mathematical symbols to modify
the file permissions.

10
LINUX ADMINISTRATION

Permissions in Linux

11
LINUX ADMINISTRATION

Permissions in Linux

Chown - Changing File Ownership

 You can change the owner of a file by using the chown command.

 chown user:group filename

 chown sverma:db file

12
Thank You

13

You might also like