Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to modify the permissions of folders and subdirectories by chmod

Shulou Source: shulou.com Published: 2022-06-03 08:22:48 10月03日 Update

What the editor shares today is how chmod modifies the permissions of folders and subdirectories. Maybe you are no stranger to chmod, or you have never known chmod. But don't worry, today the editor will give you a detailed explanation of the method of modifying the authority, which will certainly help you.

How to modify the permissions of folders and subdirectories by chmod

Open the terminal to enter the directory you need to modify

Then execute the following command

Chmod 777 *-R

All subdirectories and file permissions are changed to 777

Permission to view linux files: ls-l file name

Permission to view the linux folder: ls-ld folder name (directory)

Modify file and folder permissions:

Sudo chmod-(represents type) × × (owner) × × (group of users) × × (other users)

Commonly used commands to modify permissions:

Sudo chmod 600 × × (only the owner has read and write permissions)

Sudo chmod 644 × × (owners have read and write permissions, group users only have read permissions)

Sudo chmod 700 × × (only the owner has permission to read, write and execute)

Sudo chmod 666 × × (everyone has read and write access)

Sudo chmod 777 × × (everyone has access to read, write and execute)

The above is how to modify the folder and subdirectory permissions of chmod to do a brief introduction, of course, the detailed use of the above differences also need to be used by everyone to understand. If you want to know more, welcome to follow the industry information channel!

Tags: Permissions files folders subdirectories subdirectories owners only users names commands directories different abbreviated strange no representative that is commonly used where ability Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple NVidia Huawei Docker macOS