![linux 子文件夹赋权限](https://i-blog.csdnimg.cn/blog_migrate/08aa3bdab0e08bd0b373ec64d645c001.png)
linux 子文件夹赋权限
During daily Linux administration we generally work generally with file and directory permissions. In this tutorial we will look different examples about how to change and revert Linux file and directory permissions. There is different ways to set folder and sub folder permission in Linux but here we will describe most convenient way.
在日常Linux管理中,我们通常通常使用文件和目录权限。 在本教程中,我们将查找有关如何更改和还原Linux文件和目录权限的不同示例。 在Linux中有多种设置文件夹和子文件夹权限的方法,但是在这里我们将描述最方便的方法。
只读所有者 (Read Only Owner)
Say we have folder /opt/lamp
and we want to change all sub folders permission to change 600. Using <a href="https://www.poftut.com/linux-chmod-command-tutorial-examples-change-permission-files-folders/" target="_blank" rel="noopener noreferrer">chmod</a>
with recursive options is the simplest one.
假设我们有/opt/lamp
文件夹,并且我们想更改所有子文件夹的权限以更改600 。 使用<a href="https://www.poftut.com/linux-chmod-command-tutorial-examples-change-permission-files-folders/" target="_blank" rel="noopener noreferrer">chmod</a>
具有递归选项是最简单的一个。
$ chmod -R 600 /opt/lamp
按组读取但未编辑 (Read By Group But Not Edited)
We may want to read by the owner group but not changed. We will set binary permission 660
for this.
我们可能想按所有者组进行阅读,但不要更改。