设定文件权限
文件
You can set the permissions for the file owner, the group owner, and all other users of the system. For your files, you are the owner, and you can give yourself read-only or read-and-write permission. Set a file to read-only if you don’t want to accidentally change it.
Every user on your computer belongs to a group. On home computers, it is common for each user to have their own group, and group permissions are not often used. In corporate environments, groups are sometimes used for departments or projects. As well as having an owner, each file belongs to a group. You can set the file’s group and control the permissions for all users in that group. You can only set the file’s group to a group you belong to.
You can also set the permissions for users other than the owner and those in the file’s group.
If the file is a program, such as a script, you must select Allow executing file as program to run it. Even with this option selected, the file manager will still open the file in an application. See 可执行文本文件 for more information.
文件夹
您可以为所有者、群组和其他用户设置文件夹的访问权限。相关细节,请参阅上面对所有者、群组和其他用户的文件权限所做的说明。
对于文件夹的权限设定,跟文件权限有所不同。
- 空
用户甚至不能查看文件夹里的文件。
- 只能列出文件
用户可以看到文件夹内的文件,但是不能打开、创建或删除文件。
- 访问文件
用户可以打开里面的文件(提供对特定文件的一些操作),但仍然 不能创建新文件或删除文件。
- 创建和删除文件
用户将对相应目录拥有最高访问权,包括打开、创建和删除文件的权限。
您可以在文件夹上点击对包含的文件应用权限,快速对文件平中所有文件设置权限。使用下拉列表调整包含文件或文件夹的权限,然后点击更改,权限也会应用于子文件夹中的文件,无论文件位于哪一层。