• Skip to main content

Uly.me

cloud engineer

  • Home
  • Archives
  • Search

samba

Encrypt Samba Share

November 16, 2020 by Ulysses

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

Samba 4 Domain Controller

January 23, 2019 by Ulysses

Starting with version 4, Samba can now run as a domain controller. It can support Windows and Linux clients. You can compile it from source or install it via package managers such as rpm, yum and apt. You can always use it as a standard shared drive and even use it as a print server.

Filed Under: Misc Tagged With: cifs, domain controller, samba

Install Samba Shared Drive

August 9, 2013 by Ulysses

What’s not to like with Samba. If you’re not familiar with Samba, it’s an open-source file and printer services which allows disparate clients to share files via SMB/CIFS standard, meaning there’s interoperability between Linux/Unix servers and Windows-based clients. This article will show you how to install a Samba shared drive on an Ubuntu Server.

Install Samba Server

sudo apt-get install samba

sudo apt-get install samba

Configure Samba by editing /usr/samba/smb.conf. Uncomment and add the following.

security = user
 
[share]
comment = Ubuntu File Server Share
path = /home/ulysses/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755

security = user [share] comment = Ubuntu File Server Share path = /home/ulysses/share browsable = yes guest ok = yes read only = no create mask = 0755

Create the shared drive.

sudo mkdir /home/ulysses/share
sudo chown nobody.nogroup /home/ulysses/share
sudo chmod -R 0777 /home/ulysses/share

sudo mkdir /home/ulysses/share sudo chown nobody.nogroup /home/ulysses/share sudo chmod -R 0777 /home/ulysses/share

Restart Samba Server

sudo restart smbd
sudo restart nmbd

sudo restart smbd sudo restart nmbd

Test the shared drive by accessing it from another computer or from another OS like a Mac or Windows.

Filed Under: Linux Tagged With: samba

  • Home
  • About
  • Contact

Copyright © 2022