My file setup » History » Version 5
Gareth Eaton, 12/18/2023 01:37 AM
1 | 1 | Gareth Eaton | h1. My file setup |
---|---|---|---|
2 | |||
3 | <pre> |
||
4 | [global] |
||
5 | server min protocol = SMB3 |
||
6 | server max protocol = SMB3 |
||
7 | ntlm auth = ntlmv2-only |
||
8 | |||
9 | |||
10 | server role = standalone server |
||
11 | obey pam restrictions = yes |
||
12 | unix password sync = yes |
||
13 | passwd program = /usr/bin/passwd %u |
||
14 | passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . |
||
15 | pam password change = yes |
||
16 | 5 | Gareth Eaton | map to guest = never |
17 | 1 | Gareth Eaton | |
18 | |||
19 | [SHARE_NAME] |
||
20 | path = /srv/data |
||
21 | browseable = yes |
||
22 | read only = no |
||
23 | smb encrypt = mandatory |
||
24 | ; Enforces encryption for the share (requires SMB3 clients) |
||
25 | </pre> |
||
26 | |||
27 | This is a solid for a secure and functional setup. Key points include: |
||
28 | |||
29 | 1. **Strong Protocols and Authentication**: |
||
30 | - Enforcing SMB3 and NTLMv2-only authentication enhances security. |
||
31 | |||
32 | 2. **Server Role and User Management**: |
||
33 | - Configured as a standalone server with PAM (Pluggable Authentication Modules) restrictions and UNIX password synchronization. |
||
34 | |||
35 | 4 | Gareth Eaton | 3. **Share Configuration**: |
36 | 3 | Gareth Eaton | - The share is well-configured with mandatory SMB encryption, making it secure for SMB3 clients. |
37 | 1 | Gareth Eaton | |
38 | Overall, this configuration promotes strong security practices while ensuring functionality. Just ensure that your network environment and all clients are compatible with these settings. |