group management
Each file in Linux has the concepts of owner , group , and other groups .
File/directory owner, generally the owner of a file is the user who created the file.
The group of the file/directory, the group of the general file is the group of the user who created the file.
Other groups of the file/directory, except the owner of the file and users of all groups, other users of the system are other groups of the file.
drwxrwxrw-. 2 root root 4096 2月 2 14:12 super.txt
权限 硬链接数 文件所有者 文件所在组 文件大小 最后修改时间 文件名
Change file owner:
chown 新文件所有者 原件名
Modify the group where the file is located:
chgrp 新文件所在组 原件名
Modify both together:
chown 新文件所有者:新文件所在组 原文件
-r : 可以将目录中的文件进行递归修改
authority management
rwx421
Apply to file:
r : 代表可以读取,查看
w : 可以修改,但不能删除文件,要删除文件,需要对文件有写权限
x : 可以被执行
Act on the directory:
r : 可以读取查看目录内的内容
w : 可以创建、删除、重命名目录
x : 可以进入该目录
Modify file permissions
The first