1. for permission r: 4, w: 2, x: 1, the rwx permission of the file is for the file content, and the rwx permission of the directory is for the files in the directory. The specific meaning of permission on the directory: r: has the permission to read the list of directory structures w: can create new files and directories; delete existing files and directories (regardless of their
1. permission r: 4, w: 2, x: 1
The rwx permission of the file is for the file content, and the rwx permission of the directory is for the files in the directory.
The specific meaning of permissions on directories:
R: permission to read the list of directory structures
W: Create new files and directories, delete existing files and directories (regardless of their permissions), rename files and directories, and move files and directories
X: enter this directory to become a working directory.
Therefore, even if you have the rwx permission on the file, you may not be able to delete the file, and you must have w permissions in the directory where the file is located.
To develop a website directory for anyone to browse, you must at least grant the rx permission.