Permissions to make your data secured !!
Permissions to make your data secured !!

CALL NOW FOR FREE CONSULTATION

+91 9983340133, +91 9001997175

grras

Permissions to make your data secured !!

Hi readers,
This world is full of attackers and everyone wants to fetch your personal data anytime. So it needs that your system has to be secure, as you want. For that I am going to discuss about some basic permissions which you can apply on your files and folder/directories and make secure your data every time. These permissions can be applied on linux environment.
Before starting this session we have to understand some terms like file, directory and types of Users.
What is File?
A file is an object on a computer that stores data, information, settings, or commands that are used with a computer program.
What is directory?
Directory is also a file which contains addresses of other files.
Users
There are 3 types of owners of files who can have access on any file or directory
Users                 Representation      Descriptions
Owner                     u                                  Who creates a file.
Group-Owner     g                                    Secondary group members
Others                     o                                   Who are not owner and secondary group members

What is permission?
Permissions are access details given by system administrators that define access rights to files or directory on a network.
Basically Permissions are of 3 types
Read:- This permission gives access to files only read the content of file.
Write:- This permission gives access to files write the content of file.
Execute:- This permission gives access to open a file.
Note:-These Permissions are having different meaning for directory and regular files.
For Directory
Read :- To see the list of files present inside the directory.
Write :-to create a new file inside the directory.
Execute:- to execute cd command on directory and get entry in it.
For File
Read :- To see content of a file.
Write :- To write text inside the file.
Execute:To open a particular file.

Representation of Permissions
Permissions   Alphabetically   Numerically
Read                               r                            4
Write                             w                          2
Execute                         x                        1

Command to give permission to any user anywhere.
chmod [user+permissions] directory/file
chmod:- it is a command to change a permissions on any directory.
User:- it can be owner/group-owner/others
+/- :- it can be to add/remove the permissions
Permissions:- it can be read/write /execute
Directory/file:- it can be any file on which we want to apply security.
Example:-
chmod u+rwx,g+rx,o+r hello
Here owner of hello directory will be having permissions of read, write and execute. Similarly group-members are having permission to read and execute that means they can’t create file inside the directory hello. Similarly others can only see the list of content of directory by using ls command but they can’t enter and create any file inside the directory hello.

 

By- Mithilesh Kaur Bagga, RHCSA, RHCE,

Online trainer, GRRAS Solutions (P) Ltd., Jaipur

Leave a Reply

Your email address will not be published. Required fields are marked *