
In a multi-user environment, security of user and system data is important. Linux has three specific, or distinct, classes:
r - доступ на чтение. Предоставляет возможность чтения файлов.
w - доступ на запись. Предоставляет возможность изменения файлов.
x - доступ на запуск. Предоставляет возможность запускать (исполнять) файлы.
Приведенный выше список показывает символическое обозначение каждого разрешения (выделено жирным шрифтом).
r - 4
w - 2
x - 1
To view permissions, type
ls -l ~/
which will output a list of the directories and files in the current user's home directory. For example:
drwxr-xr-x 2 username usergroup 4096 2009-12-17 11:10 Documents
The first column, which contains drwxr-xr-x, can be interpreted as follows:
File Type | User Permissions | Group Permissions | Другие разрешения |
---|---|---|---|
d - directory | rwx - read, write и execute разрешения для пользователей. | r-x - read и execute разрешения для групп. | r-x - read и execute разрешения для всех остальных. |