
In a multi-user environment, security of user and system data is important. Linux™ has three distinct classes:
r - read разрешение предоставляет возможность пользователю читать файл.
Разрешение w - write предоставляет право изменять файл.
Разрешение x - execute предоставляет право исполнять файл.
Указанный список показывает символическое описание каждого разрешения полужирным текстом. Каждое разрешение также имеет восьмиричную нотацию (представляется цифрами от 0 до 7):
r - 4
w - 2
x - 1
To view permissions, open a terminal by going to → → → and then type
ls -l ~/
This 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:
Тип файла | Разрешения пользователей | Права группы | Другие разрешения |
---|---|---|---|
d - directory | rwx - read, write, and execute permissions for the user | r-x - read and execute permissions for the group | r-x - read and execute permissions for all others |