Home > Article > Operation and Maintenance > How to modify folder and subdirectory permissions with chmod
How to use chmod to modify the permissions of folders and subdirectories
Open the terminal and enter the directory you need to modify
Then execute The following command
chmod 777 * -R
Change the permissions of all subdirectories and files to 777
View the permissions of the linux file: ls -l file name
Check the permissions of the linux folder: ls -ld folder name (directory where it is located)
Modify file and folder permissions:
sudo chmod -(代表类型)×××(所有者)×××(组用户)×××(其他用户)
Commonly used commands to modify permissions:
sudo chmod 600 ××× (Only the owner has read and write permissions)
sudo chmod 644 ××× (The owner has read and write permissions, group users only have read permissions)
sudo chmod 700 ××× (Only the owner has read, write and execute permissions)
sudo chmod 666 ××× (Everyone has read and write permissions)
sudo chmod 777 ××× (Everyone has read, write and execution permissions)
(Online video tutorial sharing: linux video tutorial)
The above is the detailed content of How to modify folder and subdirectory permissions with chmod. For more information, please follow other related articles on the PHP Chinese website!