DevOps-knowledge-base/linux/ХРАНИЛКИ.MD
2025-02-21 12:18:50 +03:00

75 lines
3.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Базовые права устанавливаются на уровне файловой системы Linux.
Пользователь Linux добавляется в базу Samba с помощью smbpasswd.
В конфигурации Samba (smb.conf) задаются дополнительные ограничения и правила.
Все уровни (Linux, база Samba, smb.conf) должны соответствовать, чтобы пользователь получил доступ.
---
!!! note "Примечание"
Это стандартное примечание.
??? tip "Совет"
Это полезный совет.
!!! info "Информация"
Это дополнительная информация.
??? warning "Предупреждение"
Это важно знать.
!!! danger "Опасность"
Это может привести к проблемам.
??? success "Успех"
Задача выполнена успешно.
!!! caution
---
server {
listen 80;
server_name example.com;
# Точное совпадение для корня
location = / {
return 301 /home;
}
# Префиксное совпадение для статических файлов
location /static/ {
root /var/www/example/static;
}
# Регулярное выражение для PHP-файлов
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
}
# Общее совпадение для остальных запросов
location / {
proxy_pass http://127.0.0.1:8080;
}
}
"SELECT
role1.id AS id1, role1.version AS version1, rolepermission1.id AS id2, rolepermission1.appobj AS appobj1, rolepermission1.fieldname AS fieldname1, rolepermission1.cancreate AS cancreate1, rolepermission1.canread AS canread1, rolepermission1.canwrite AS canwrite1, rolepermission1.candelete AS candelete1, state1.id AS id3, state1.version AS version2, accesssegment1.id AS id4, accesssegment1.version AS version3, accesssegment1.appobj AS appobj2, accesssegment1.type AS type1, accesssegment1.name AS name1, accesssegment1.system AS system1, accesssegment1.values AS values1
FROM role role1
LEFT JOIN rolepermission rolepermission1 ON role1.id = rolepermission1.roleid
LEFT JOIN state state1 ON rolepermission1.stateid = state1.id
LEFT JOIN accesssegment accesssegment1 ON rolepermission1.segmentid = accesssegment1.id
WHERE role1.id in ($1, $2, $3, $4)"
EXPLAIN (analyze, buffers)
SELECT
role1.id AS id1, role1.version AS version1, rolepermission1.id AS id2, rolepermission1.appobj AS appobj1, rolepermission1.fieldname AS fieldname1, rolepermission1.cancreate AS cancreate1, rolepermission1.canread AS canread1, rolepermission1.canwrite AS canwrite1, rolepermission1.candelete AS candelete1, state1.id AS id3, state1.version AS version2, accesssegment1.id AS id4, accesssegment1.version AS version3, accesssegment1.appobj AS appobj2, accesssegment1.type AS type1, accesssegment1.name AS name1, accesssegment1.system AS system1, accesssegment1.values AS values1
FROM role role1
LEFT JOIN rolepermission rolepermission1 ON role1.id = rolepermission1.roleid
LEFT JOIN state state1 ON rolepermission1.stateid = state1.id
LEFT JOIN accesssegment accesssegment1 ON rolepermission1.segmentid = accesssegment1.id
WHERE role1.id in (84, 70)