Simple Samba Share Setup

waylonwalker

Waylon Walker

Posted on February 9, 2022

Simple Samba Share Setup

Samba is an implementation of the smb protocol that allows me to setup network shares on my linux machine that I can open on a variety of devices.

I think the homelab is starting to intrigue me enought to dive into the path of experimenting with different things that I might want setup in my own home. One key piece of this is network storage. As I looked into nas, I realized that it takes a dedicated machine, or one virtualized at a lower level than I have capability for right now.

Humble Beginnings

To get goind I am going to make a directory /srv/samba/public open to anyone on my network. I am not going to worry too much about it, I just want something up and running so that I can learn.

Install samba, open the firewall, and edit the smb.conf

sudo apt install samba samba-common-bin sudo ufw allow samba sudo nvim /etc/samba/smb.conf
Enter fullscreen mode Exit fullscreen mode

I added this to the end of my smb.conf

[public]

comment = public share, no need to enter username and password path = /srv/samba/public/ browseable = yes writable = yes guest ok = yes
Enter fullscreen mode Exit fullscreen mode

Then I made the /srv/samba/public directory and made it writable by anyone.

sudo mkdir -p /srv/samba/public sudo setfacl -R -m "u:nobody:rwx" /srv/samba/public/
Enter fullscreen mode Exit fullscreen mode

Windows, yes windows

I have a windows desktop in my office, primarily for my wife to run premiere pro, and my son to play Minecraft. I walked over to it, opened the file explorer, and ernt to \\<my-local-ip>. It asked for the username and password, I typed in the username and password of the linux device I have the share running on, and I was in. Right there I could see the Public folder. I opened it and made a files successfully.

What's in your homelab?

I am just starting to scratch the surface of homelab, and will likely set up some more permanent things eventually. What are some things I should look at?

💖 💪 🙅 🚩
waylonwalker
Waylon Walker

Posted on February 9, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Simple Samba Share Setup
linux Simple Samba Share Setup

February 9, 2022

My basic vim setup
vim My basic vim setup

February 4, 2022

Remove Vim Tab Characters
vim Remove Vim Tab Characters

January 6, 2022

My first impressions with pyenv
python My first impressions with pyenv

December 30, 2021

Serve html from your command line
vim Serve html from your command line

December 28, 2021