Home > Operation and Maintenance > Linux Operation and Maintenance > How to modify folder and subdirectory permissions with chmod

How to modify folder and subdirectory permissions with chmod

angryTom
Release: 2020-02-08 11:48:56
Original
29151 people have browsed it

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
Copy after login

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 -(代表类型)×××(所有者)×××(组用户)×××(其他用户)
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template