# Права Доступа

Существует 3 права доступа: 1. **r** ***-*** **чтение** 2. **w - запись** 3. **x - выполнение**

просмотр текущих прав доступа осуществляется командой  **`ls- l`** < имя файла или каталога>

в ответ будет дана строка:                                                                                                                                                                                     &#x20;

***`-r--r----- 1 den group 300 Apr 11 11:11 video.txt`***

"***`-`***" ( первый символ) - означает файл, если б была директория первой была бы буква "d"

"***`r--`***" (следуюющие 3 символа) - означают права (1 символ - чтение, 2 - запись, 3 - выполнение) доступа владельца

"***`r--`***" ( следиющие 3 символа) - означают права для группы

"**`---`**" ( последние 3 символа)  - права доступа для прочих пользователей

Для Установки прав доступа используется команда **`chmod`** .

**`chmod 640`** <имя файла>

&#x20;Наиболее популярные права доступа:

**`644`** - владельцу можно читать и изменять файл, остальным только читать

**`666`** - читать и изменять можно всем

**`777`** - читать, изменять и исполнять можно всем

**`chmod +x script`** - делает скрипт исполняемым

**`chmod -x scrip`** - снимаем право выполнения со скрипта


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aleksey-vi.gitbook.io/linux/sistemnoe-administrirovanie/bazovye-znaniya/untitled-9.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
