Line 23: |
Line 23: |
| [global] | | [global] |
| workgroup = WORKGROUP # edit, to your workgroup name | | workgroup = WORKGROUP # edit, to your workgroup name |
− | netbios name = debian # edit, to your netbios name
| |
| server string = %h server (Samba %v) | | server string = %h server (Samba %v) |
| wins support = no | | wins support = no |
Line 29: |
Line 28: |
| dns proxy = no | | dns proxy = no |
| | | |
| + | [Debugging/Accounting] |
| log level = 1 | | log level = 1 |
| log file = /var/log/samba/log.%m | | log file = /var/log/samba/log.%m |
Line 34: |
Line 34: |
| syslog = 0 | | syslog = 0 |
| | | |
| + | [Authentication] |
| security = domain | | security = domain |
| encrypt passwords = true | | encrypt passwords = true |
Line 40: |
Line 41: |
| unix password sync = no | | unix password sync = no |
| | | |
| + | [Printing] |
| load printers = no | | load printers = no |
| disable spoolss = yes | | disable spoolss = yes |
| + | |
| + | [Misc] |
| socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 | | socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 |
− |
| |
| winbind use default domain = yes | | winbind use default domain = yes |
| #winbind separator = | | #winbind separator = |
Line 50: |
Line 53: |
| idmap uid = 5000-20000 | | idmap uid = 5000-20000 |
| idmap gid = 5000-20000 | | idmap gid = 5000-20000 |
− | winbind enum users = yes
| |
− | winbind enum groups = yes
| |
| template shell = /bin/bash | | template shell = /bin/bash |
| # use %U for the user, use %D for the domain | | # use %U for the user, use %D for the domain |
| template homedir = /home/%D/%U | | template homedir = /home/%D/%U |
| #template primary group = users | | #template primary group = users |
| + | winbind enum users = yes |
| + | winbind enum groups = yes |
| + | *To check validation of smb.conf, run |
| + | testparm |
| | | |
| * /etc/nsswitch | | * /etc/nsswitch |