Files and Folders Permissions In Linux|How to giveFiles permissions In Linux|Linux commandsforDevops
Files and Folders Permissions In Linux|How to giveFiles permissions In Linux|Linux commandsforDevops
Files and Folder permissions:
-------------------------------------------------------------------------------------
Files and folders security is major part in any operating system including linux
Linux is an Multi-User operation system where various different users can parallely can use the machine
and underlying resources. this is the basic requirement of Linux to built-up some security features
in handling and protecting files and folders when multiple users accessing the machine.
If one user is accessing Files and Folders in linux the owners or created user should have all rights to
protected to be accessed/modified by any other user of the Linux System. the whole process can be achieved by Using Files
and Folder Permissions provided by Linux.
The files/folders we create in linux by default we dont need to assign permissions.
Linux is granting permissions by default.
General Permissions of files and Folders
--------------------------------------------------------------------
1.read
2.write
3.execute
Linux has below 3 levels of managing the File permissions:
-------------------------------------------------------------------------------------------
1. Owner is the Creator of the File/Folder
2. Group = The file belongs to particular group, and those user permissions.
3. Others = he is not a user and does belongs to the file group is called others.
File:
--------------------------------------------------------------------------------
1. read = we are able to see the contents of the file,wc,cat,grep.
2. write = we are able to modify the contents of the file or we can delete as well.
3. execute = that particular file contains programming instructions then we can run it.
Folder:
----------------------------------------------------------------------------------------------
1. read = we can list or see the contents of folder (ls). But we cannot modify the folder contents
2. write = we are able to add/remove files and folders inside that folder
3. execute = we are able to cd into that folder
ls -l kite.txt
-rwx-rwx-rwx
Comments
Post a Comment