Skip to main content

explanation about chmod in linux

 Explanation About Chmod in linux





chmod is the command and system call which is used to change the access permission of file system ( file and directory ).

 

basically chmod is used to give protection for user file system,
we can chose who can access this file system and who doesn't allowed to access file system.

Owner-Group-Other

ls -l
# this command is using to show all file system permission
# if file system is "directory" type
# drwxrwxrwx
# if file system is "file" type
# -rwxrwxrwx 
 
 
* d = Directory
* r = Read
* w = Write
* x = Execute
* -R = Rekursif / to change all file system inside Directory


How To Use chmod
chmod -R 000 <File-System-Name>
# First '0' is for "Owner"
# Second '0' is for "Group"
# Third '0' is for "Other"


Numerical Permissions
# 
1 is for " Execute "

2 is for " Write "

4 is for " Read "

< You can combination Numerical Permissions >
Example:

1 + 2 = 3 ( 3 is for " Execute and Write " )
1 + 4 = 5 ( 5 is for " Execute and Read " )
2 + 4 = 6 ( 6 is for " Write and Read " )

Example How To use chmod
chmod -R 700 <File-System-Name>
# what will we get is: only owner is can " Execute, Write, And Read "


                                                <--End-->

My business Email: ghost087@protonmail.com 

Comments

Popular posts from this blog

How To Format USB ( Flash Disk ) using Ubuntu

  How To Fomat and Delete Partition Flash Disk using ubuntu Hello everyone, today is Sunday, 13 December 2020.  i want to talking about format flash disk using linux.  Before user create bootable media user need to format flashdisk ( this is optional ) or user  want to make bootable media become normal flashdisk. Basically formating flash disk it's very important technique    * i have test this method in debian based linux ( ubuntu, kali, pop os, and any distro based on debian ) *follow this method step by step Step To Remove Partition    1. Open Terminal and type " sudo su " 2. Type "fdisk -l" ( to show all Partition ) 3. Type " fdisk /dev/sdx"  ( Change Variabel 'x' to your usb ) 4. Type 'd' to remove  5. Type '1' to chose your patition  6. Type 'd' to remove partition      Step To Create New Partition  1. Type 'n' to Create New Partition 2. Type 'p' To Make It Primary 3. Tekan '1' To Make It Be...

installing Pinta on Ubuntu

 Installing Pinta on Ubuntu Hello everyone, today is Wednesday 16 December 2020. I want to talking about pinta, pinta is application to draw something, with using pinta application user can draw something in linux.  for example: if user have a digital drawing tablet like wacom or any other digital drawing tablet, user can use pinta as application to draw somethings. If user using ubuntu and you have wacom drawing tablet you don't need to install wacom driver, because ubuntu already support wacom drawing tablet Pinta is a free and open source program for drawing and image editing, about this program: easy to use, if user want to draw something and user still new on photo editing, this program is highly recommended.   How To Install pinta using Ubuntu PPA