Project

General

Profile

My file setup » History » Version 4

Gareth Eaton, 12/18/2023 01:36 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
17
18
[SHARE_NAME]
19
   path = /srv/data
20
   browseable = yes
21
   read only = no
22
   smb encrypt = mandatory
23
   ; Enforces encryption for the share (requires SMB3 clients)
24
</pre>
25
26
This is a solid for a secure and functional setup. Key points include:
27
28
1. **Strong Protocols and Authentication**:
29
   - Enforcing SMB3 and NTLMv2-only authentication enhances security.
30
31
2. **Server Role and User Management**:
32
   - Configured as a standalone server with PAM (Pluggable Authentication Modules) restrictions and UNIX password synchronization.
33
34 4 Gareth Eaton
3. **Share Configuration**:
35 3 Gareth Eaton
   - The share is well-configured with mandatory SMB encryption, making it secure for SMB3 clients.
36 1 Gareth Eaton
37
Overall, this configuration promotes strong security practices while ensuring functionality. Just ensure that your network environment and all clients are compatible with these settings.