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/11 08:59] val [Debian/Ubuntu] |
файловый_сервер_samba [2021/10/17 05:50] val [Идентификация доступа к файловому серверу на основе копии базы данных учетных записей] |
||
---|---|---|---|
Line 70: | 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 85: | 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 245: | Line 250: | ||
===== Отладка ===== | ===== Отладка ===== | ||
+ | |||
+ | * [[https://wiki.samba.org/index.php/Client_specific_logging|Client specific logging]] | ||
<code> | <code> | ||
Line 251: | 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> |