Update 后端程序员必备的Linux基础知识.md #103
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
drw-r--r-- 2 root root 4096 Dec 28 21:32 test
[root@VM_0_6_centos ~]# cd test/
[root@VM_0_6_centos test]#
如果我们在超级用户下,不管目录的权限如何,不管目录的文件所有者是谁,我们都可以执行目录的所有读写执行权限
如果我们在普通用户下,如果该文件是普通用户创建的,即是目录的文件所有者是普通用户,那么我们给文件所有者读的权限,我们可以查看目录内容,如果我们给文件所有者可执行权限,那么我们可以进入目录,如果我们给文件所有者读的权限,我们可以查看目录下面的文件内容。
如果我们在普通用户下,并且该目录的问文件所有者是超级用户,只有在超级用户下更改目录的权限,并且更改的是该目录对应的其他人的读写和执行权限的时候,我们才可以执行相应的操作。
https://blog.csdn.net/Neil4/article/details/63682241