文件权限的含义 [英] File permission meanings

查看:85
本文介绍了文件权限的含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些文件权限是什么意思?我无法理解它们,我尝试查看0-7的含义,但是不确定它们何时在一起.

What do these file permissions mean? I am unable to understand them i tried looking at the 0-7 meanings but im unsure when they are together.

-r-------x
----rw---- 
-rwx--x--x

推荐答案

数字的权限是3个八进制数字.例如,当转换为3个二进制数时,555为101 101 101,它对应于r-x r-x r-x.第一组是所有者,第二组是组,第三组是其他人.

Permissions as numbers are 3 octal numbers. 555, for example, when converted to 3 binary numbers is 101 101 101 which would correspond to r-x r-x r-x. The first set is owner, second set is group, third set is everyone else.

r =已读

w =写

x =执行

如果缺少任何这些(-),则该集合没有这些权限.

If any of those are missing (-), then that set does not have those permissions.

这篇关于文件权限的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆