Each file and directory in a Linux system has access permissions, which are used to determine who can access and manipulate files and directories.Access to a file or directory is divided into read-only, write-only, and executable three types. As an
Each file and directory in a Linux system has access permission to determine who can access and manipulate files and directories in any way.
File or directory access is divided into read-only, write-only and executable three kinds. In the case of a
The chmod command is used to change the permissions of a file or directory.In the UNIX system family, the control of file or directory permissions is distinguished by reading, writing, performing 3 general permissions, and 3 special permissions are
One, the use of chown and chmod commands
directive Name: chmod
Use Rights: All users
How to use: chmod [-CFVR] [--help] [--version] Mode file ...
Description: Linux/unix file access rights are divided into three levels: file owners, groups,
Linux Command--chmod
Command Description
Permissions to change the file or directory. In the UNIX system family, the control of file or directory permissions is divided by reading, writing, executing 3 general permissions, and 3 special
First to familiarize yourself with the following permissions, an example of the above Comm document as an example$ls-L
-rw-rw-r--1 yjplxq yjplxq 36 July 22:40 A.txt-rw-rw-r--1 yjplxq yjplxq 27 July 22:41 B.txt-rw-rw-r--1 yjplxq yjplxq 1231 July 22:4
From http://blog.csdn.net/linuxgroup
In Linux, I always encounter a headache because I don't have the permission to modify files. As a newbie, I like "chmod 777-r file directory". As a result, the system crashes.
"
ChmodCommand
Purpose
Chmod command, chmod
Chmod -- Modify file or directory permissions
ChAnge the permissionsModE of a file
Command path:/bin/chmod
Note: Only root users and file owners can modify permissions.
Example 1:
# Chmod644/temp/chmodtest
R (read) -- 4
W
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.