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.
我们可能想按所有者组进行阅读,但不要更改。

本文提供了一种在Linux中更改和还原文件及目录权限的方法。介绍了如何将所有者设置为只读,如何允许组读取但不允许编辑,以及如何允许其他人阅读但不能编辑。同时,通过`find`命令演示了如何更改目录、文件及其扩展名的权限。
最低0.47元/天 解锁文章
952

被折叠的 条评论
为什么被折叠?



