![chmod750和755](https://img-blog.csdnimg.cn/img_convert/f4c52453442559eb35612c8e2acdb689.png)
chmod750和755
chmod
is Linux command used to change file permissions. chmod
changes user, group and other read, write and execute permission. chmod 755
is popular use case for chmod
. chmod 755
is generally used to make most of the operations without problem because it provides ease for system administrators while running applications.
chmod
是用于更改文件权限Linux命令。 chmod
更改用户,组和其他读取,写入和执行权限。 chmod 755
是流行的用例chmod
。 chmod 755
通常用于大多数操作而不会出现问题,因为它在运行应用程序时为系统管理员提供了便利。
chmod 755 (chmod 755)
755
can be separated as
755
可分为
7
user can read, write, execute7
用户可以读取,写入,执行5
group can read and execute5
组可以阅读和执行5
others can read and execute其他
5
人可以阅读和执行
chmod 700(chmod 700)
700
can be separated as
700
可以分隔为
7
user can read, write, execute7
用户可以读取,写入,执行0
group can not do anything0
组无能为力0
others can not do anything0
人无能为力
rwxr-xr-x(rwxr-xr-x)
Linux file system permissions provides two type of representation. One is using number we have all ready examined. Another presentation form for 755
is rwxr-xr-x
. This is simple read
, write
and execute
permissions.
Linux文件系统权限提供两种类型的表示形式。 一种是使用数字,我们已经准备就绪。 755
另一种表示形式是rwxr-xr-x
。 这是简单的read
, write
和execute
权限。
须藤 (Sudo)
If we do not have required permissions as a normal user we need to get required privileges with the sudo
command. We can also use chmod 755
with sudo
. In some situations we must use sudo
because our current user rights will not meet required privileges.
如果我们没有普通用户所需的权限,则需要使用sudo
命令获得所需的权限。 我们也可以将chmod 755
与sudo
。 在某些情况下,我们必须使用sudo
因为我们当前的用户权限将不符合所需的特权。
$ sudo chmod 755 bin
chmod750和755