Let's talk about how to set file permissions in linux.
Source: Internet
Author: User
Let's talk about linux's file permission settings-general Linux technology-Linux technology and application information. The following is a detailed description. 1. We want to view the file permissions.
We can use the ls commands we have learned before.
For example, ls-l oo
We can view the oo permissions, for example, drwxr-xr-x.
Step by step, d indicates that the directory rwx indicates the permission of the file owner-r-x indicates the permission of the file group. R-x indicates the permissions of all users.
Okay. Let's take a look at the permission. r is readable. w is writable. x is executable.
Next, we need to change the File Permission.
We use the command chmod.
For example, chmod 777 oo
We changed this object in oo to give him the maximum permission.
2. We want to change the owner and group of the file.
We use chown
Chown kk: kk lll
Let's take a look at this example. kk is the user lll is the file name.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service