This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
файловый_сервер_samba [2021/03/01 20:00] val [Отладка] |
файловый_сервер_samba [2021/10/17 05:50] val [Идентификация доступа к файловому серверу на основе копии базы данных учетных записей] |
||
---|---|---|---|
Line 32: | Line 32: | ||
guest ok = Yes | guest ok = Yes | ||
</code><code> | </code><code> | ||
- | server# testparm | + | # mkdir /var/distrs |
- | server# mkdir /var/distrs && chown games /var/distrs | + | # cd /var/distrs |
+ | |||
+ | # wget http://val.bmstu.ru/unix/Mail/Thunderbird%20Setup%2017.0.msi | ||
</code> | </code> | ||
===== Публичный каталог доступный на запись ===== | ===== Публичный каталог доступный на запись ===== | ||
Line 68: | Line 70: | ||
New SMB password: wpassword1 | New SMB password: wpassword1 | ||
- | server# smbpasswd -a user2 | + | server# (echo wpassword2; echo wpassword2) | smbpasswd -a user2 |
# pdbedit -w -L | # pdbedit -w -L | ||
Line 83: | Line 85: | ||
[homes] | [homes] | ||
read only = no | read only = no | ||
+ | |||
+ | ; sometimes solves the problem permission deny | ||
+ | ;;;; users = %U | ||
+ | ; force user=%U | ||
+ | |||
[corp_share] | [corp_share] | ||
Line 210: | Line 217: | ||
;with winbind | ;with winbind | ||
- | ; valid users = CORPX\user1 CORPX\Administrator CORPX\root games | + | ; valid users = CORPX\user1 CORPX\Administrator CORPX\root |
- | ; valid users = @CORP13\group1 games | + | ; valid users = @CORPX\group1 |
- | ; valid users = "@CORPX\domain users" games | + | ; valid users = "@CORPX\domain users" |
;without winbind, group1 must be master group | ;without winbind, group1 must be master group | ||
Line 243: | Line 250: | ||
===== Отладка ===== | ===== Отладка ===== | ||
+ | |||
+ | * [[https://wiki.samba.org/index.php/Client_specific_logging|Client specific logging]] | ||
<code> | <code> | ||
Line 249: | Line 258: | ||
[global] | [global] | ||
... | ... | ||
- | log level = 2 | + | max log size = 0 |
- | log file = /var/log/samba.log.%m | + | log file = /var/log/samba/log.%I |
- | max log size = 50 | + | log level = 10 |
- | debug timestamp = yes | + | debug pid = yes |
+ | debug uid = yes | ||
+ | debug class = yes | ||
+ | debug hires timestamp = yes | ||
... | ... | ||
</code> | </code> | ||
Line 264: | Line 276: | ||
</code><code> | </code><code> | ||
... | ... | ||
- | 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 = unlink open |
- | full_audit:failure = none | + | full_audit:failure = none |
- | full_audit:priority = NOTICE | + | full_audit:priority = NOTICE |
... | ... | ||
</code><code> | </code><code> |