什么是chmod 777?

chmod 777 is very popular ownership command. 777 simply means give all rights to the all users. chmod 777 generally used to make operations more smoothly because it will remove all ownership related problems. We generally use chmod 777 some error message like below.

chmod 777是非常流行的所有权命令。 777仅仅意味着将所有权利授予所有用户。 chmod 777通常用于使操作更顺畅,因为它将消除所有与所有权相关的问题。 我们通常使用chmod 777如下所示的一些错误消息。

You don't have permission to access /bin/ on this server.

递归所有文件和目录 (All Files and Directories Recursively)

One of the most popular use case for chmod 777 is changing given directory and child directories permission recursively. We can use -R option for this. In this example, we will change all directory named bin and its subdirectories and files to 777.

chmod 777最受欢迎的用例之一是递归更改给定目录和子目录的权限。 我们可以使用-R选项。 在此示例中,我们将所有名为bin目录及其子目录和文件更改为777

$ chmod -R 777 /bin

chmod 777与sudo (chmod 777 with sudo)

We may need root privileges. In these situations we should use sudo to get root privileges during the command execution.

我们可能需要root特权。 在这些情况下,我们应该在命令执行期间使用sudo来获得root特权。

$ sudo chmod -R 777 bin

安全问题 (Security Problems)

Now it provides a lot of flexibility but running chmod 777 will create security problems. This will make all given files and directories read, write, and executable by all of the users. A user can change a system binary and escalate its credentials.

现在它提供了很大的灵活性,但是运行chmod 777会带来安全问题。 这将使所有用户都可以读取,写入和执行所有给定的文件和目录。 用户可以更改系统二进制文件并升级其凭据。

LEARN MORE  Dymerge Dictionary Merge Tool
了解更多Dymerge词典合并工具

翻译自: https://www.poftut.com/what-is-chmod-777/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值