• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Encrypt Samba Share

November 16, 2020

Here’s how to turn on Samba encryption on a share.

Edit /etc/samba/smb.conf on the Samba server.

[global]
server max protocol = SMB3
smb encrypt = required 
lanman auth = no

[global] server max protocol = SMB3 smb encrypt = required lanman auth = no

Edit /etc/samba/smb.conf on the Samba clients.

[global]
smb encrypt = required
client min protocol = SMB2
client max protocol = SMB3

[global] smb encrypt = required client min protocol = SMB2 client max protocol = SMB3

To connect.

smbclient -e -m SMB3 //xxx.xxx.xxx.xxx/share-name -U username

smbclient -e -m SMB3 //xxx.xxx.xxx.xxx/share-name -U username

Filed Under: Linux Tagged With: client, encryption, samba, server, smb.conf

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023