This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
файловый_сервер_samba [2022/10/14 08:23] val [Режим ADS без использования WINBIND] |
файловый_сервер_samba [2024/10/15 09:52] (current) val [Мониторинг активности пользователей] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Файловый сервер SAMBA ====== | ====== Файловый сервер SAMBA ====== | ||
| - | [[http://ru.wikipedia.org/wiki/Samba]] | + | * [[https://ru.wikipedia.org/wiki/Samba|Samba]] |
| + | * [[https://interface31.ru/tech_it/2023/07/vklyuchaem-otobrazhenie-samba-servera-v-setevom-okruzhenii-windows.html|Включаем отображение Samba-сервера в сетевом окружении Windows]] | ||
| ===== Установка SAMBA ===== | ===== Установка SAMBA ===== | ||
| Line 84: | Line 85: | ||
| security = user | security = user | ||
| [homes] | [homes] | ||
| - | read only = no | + | read only = no |
| + | valid users = %S | ||
| ; sometimes solves the problem permission deny | ; sometimes solves the problem permission deny | ||
| Line 207: | Line 209: | ||
| [homes] | [homes] | ||
| ; may be need make homedir | ; may be need make homedir | ||
| - | read only = no | + | read only = no |
| + | valid users = %S | ||
| [corp_share] | [corp_share] | ||
| Line 265: | Line 268: | ||
| ===== Мониторинг активности пользователей ===== | ===== Мониторинг активности пользователей ===== | ||
| + | |||
| + | <code> | ||
| + | # smbstatus | ||
| + | </code> | ||
| * [[https://moiristo.wordpress.com/2009/08/10/samba-logging-user-activity/|Samba: Logging User Activity]] !!! аудит можно настроить глобально или, на конкретном ресурсе !!! | * [[https://moiristo.wordpress.com/2009/08/10/samba-logging-user-activity/|Samba: Logging User Activity]] !!! аудит можно настроить глобально или, на конкретном ресурсе !!! | ||
| Line 274: | Line 281: | ||
| vfs objects = full_audit | vfs objects = full_audit | ||
| full_audit:prefix = %U|%u|%I|%m|%S | full_audit:prefix = %U|%u|%I|%m|%S | ||
| - | full_audit:success = unlink open | + | full_audit:success = connect, open, mkdir, rmdir, unlink, write, rename |
| full_audit:failure = none | full_audit:failure = none | ||
| full_audit:priority = NOTICE | full_audit:priority = NOTICE | ||